/// Returns a read-only view on the image data.
Returns a read-only view on the image data.
Returns a read - only view on the image data .
pub fn data(&self) -> &[u8] {
        let data = unsafe { sys::ktxTexture_GetData(self.handle) };
        // SAFETY: Safe if `self.handle` is sane.
        unsafe { std::slice::from_raw_parts(data, self.data_size()) }
    }
pub fn data ( & self ) -> & [ u8 ] { let data = unsafe { sys :: ktxTexture_GetData ( self . handle ) } ; // SAFETY: Safe if `self.handle` is sane. unsafe { std :: slice :: from_raw_parts ( data , self . data_size ( ) ) } }
Returns a read-only view on the image data.
Returns a read - only view on the image data .
&self