#[repr(C)]pub struct FolditPluginBuffer {
pub data: *mut u8,
pub len: usize,
pub capacity: usize,
}Expand description
Plugin-allocated byte buffer. Host frees via
FolditPluginVtable::free_buffer.
Fields§
§data: *mut u8Pointer to the bytes. Null + len = 0 for an empty buffer.
len: usizeByte length of the valid region pointed to by data.
capacity: usizeCapacity (typically Vec capacity); used by the plugin’s
free_buffer to reconstruct the original allocation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for FolditPluginBuffer
impl !Sync for FolditPluginBuffer
impl Freeze for FolditPluginBuffer
impl RefUnwindSafe for FolditPluginBuffer
impl Unpin for FolditPluginBuffer
impl UnsafeUnpin for FolditPluginBuffer
impl UnwindSafe for FolditPluginBuffer
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