pub struct Payload {
pub tag: [u8; 4],
pub declared_size: u32,
pub data_offset: usize,
pub data_len: usize,
pub compressed: bool,
}Expand description
A located texture payload chunk and its inner framing.
Fields§
§tag: [u8; 4]The payload chunk tag (astc, ASTC, or LZFS).
declared_size: u32The 4-byte inner declared size that prefixes the payload data.
data_offset: usizeByte offset of the payload data within the container (after the inner size).
data_len: usizeLength of the payload data in bytes.
compressed: boolWhether the payload is LZFSE-compressed (the LZFS tag).
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more