#[repr(C)]pub struct FLSliceResult {
pub buf: *const c_void,
pub size: usize,
}Expand description
A heap-allocated block of memory returned from an API call.
The caller takes ownership, and must call \ref FLSliceResult_Release when done with it.
\warning The contents of the block must not be modified, since others may be using it.
\note This is equivalent to the C++ class alloc_slice. In C++ the easiest way to deal with
a FLSliceResult return value is to construct an alloc_slice from it, which will
adopt the reference, and release it in its destructor. For example:
alloc_slice foo( CopyFoo() );
Fields§
§buf: *const c_void§size: usizeImplementations§
Trait Implementations§
Source§impl AsRef<[u8]> for FLSliceResult
impl AsRef<[u8]> for FLSliceResult
Source§impl Debug for FLSliceResult
impl Debug for FLSliceResult
Source§impl Default for FLSliceResult
impl Default for FLSliceResult
Source§impl Drop for FLSliceResult
impl Drop for FLSliceResult
impl Send for FLSliceResult
looks like according C++ code it is safe from other thread
Auto Trait Implementations§
impl Freeze for FLSliceResult
impl RefUnwindSafe for FLSliceResult
impl !Sync for FLSliceResult
impl Unpin for FLSliceResult
impl UnsafeUnpin for FLSliceResult
impl UnwindSafe for FLSliceResult
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