pub struct G00Chip {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub sprite: bool,
pub data: G00ChipData,
}Fields§
§x: u32§y: u32§width: u32§height: u32§sprite: bool§data: G00ChipDataImplementations§
Source§impl G00Chip
impl G00Chip
Sourcepub fn decode_bgra(&self) -> Result<Vec<u8>>
pub fn decode_bgra(&self) -> Result<Vec<u8>>
Decode chip pixels into a BGRA8 buffer (little-endian bytes).
Sourcepub fn decode_rgba(&self) -> Result<Vec<u8>>
pub fn decode_rgba(&self) -> Result<Vec<u8>>
Decode chip pixels into an RGBA8 buffer.
Sourcepub fn jpeg_bytes(&self) -> Option<&[u8]>
pub fn jpeg_bytes(&self) -> Option<&[u8]>
Return the stored type 3 payload bytes. These bytes are still XOR-obfuscated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for G00Chip
impl RefUnwindSafe for G00Chip
impl Send for G00Chip
impl Sync for G00Chip
impl Unpin for G00Chip
impl UnsafeUnpin for G00Chip
impl UnwindSafe for G00Chip
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