Struct skia_bindings::SkMemoryStream 
source · #[repr(C)]pub struct SkMemoryStream {
    pub _base: SkStreamMemory,
    pub fData: sk_sp<SkData>,
    pub fOffset: usize,
}Fields§
§_base: SkStreamMemory§fData: sk_sp<SkData>§fOffset: usizeImplementations§
source§impl SkMemoryStream
 
impl SkMemoryStream
pub unsafe fn MakeCopy(data: *const c_void, length: usize) -> u64
pub unsafe fn MakeDirect(data: *const c_void, length: usize) -> u64
pub unsafe fn Make(data: sk_sp<SkData>) -> u64
pub unsafe fn setMemoryOwned(&mut self, data: *const c_void, length: usize)
pub unsafe fn setData(&mut self, data: sk_sp<SkData>)
pub unsafe fn skipToAlign4(&mut self)
pub unsafe fn getAtPos(&mut self) -> *const c_void
pub unsafe fn new() -> Self
pub unsafe fn new1(length: usize) -> Self
pub unsafe fn new2(data: *const c_void, length: usize, copyData: bool) -> Self
pub unsafe fn new3(data: sk_sp<SkData>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SkMemoryStream
impl !Send for SkMemoryStream
impl !Sync for SkMemoryStream
impl Unpin for SkMemoryStream
impl UnwindSafe for SkMemoryStream
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