#[repr(C)]pub struct FolditPluginAsset {
pub name_data: *const u8,
pub name_len: usize,
pub data: *const u8,
pub data_len: usize,
}Expand description
One puzzle asset delivered at Init: a name plus its raw bytes.
Borrowed view; the host owns the underlying memory for the duration
of the init call. The name carries the original filename (extension
included) so the plugin can sniff the asset’s format.
Fields§
§name_data: *const u8UTF-8 asset name (original filename); not null-terminated.
name_len: usizeByte length of name_data.
data: *const u8Pointer to the asset bytes.
data_len: usizeByte length of data.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FolditPluginAsset
impl !Sync for FolditPluginAsset
impl Freeze for FolditPluginAsset
impl RefUnwindSafe for FolditPluginAsset
impl Unpin for FolditPluginAsset
impl UnsafeUnpin for FolditPluginAsset
impl UnwindSafe for FolditPluginAsset
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