Struct decrunch::CrunchedData
[−]
[src]
pub struct CrunchedData<'a> { pub buffer: &'a [u8], // some fields omitted }
Fields
buffer: &'a [u8]
Methods
impl<'a> CrunchedData<'a>
[src]
fn new(buffer: &'a [u8]) -> Self
fn level_info(&self, level: u32) -> LevelInfo
Retrieves mipmap level specific information from the CRN data.
fn texture_info(&self) -> TextureInfo
Retrieves texture information from the CRN data.
fn decode_level(&self, level: u32) -> Option<Vec<u8>>
Transcodes the specified mipmap level to a destination buffer.