[−][src]Struct skia_bindings::SkData
Fields
_base: SkNVRefCnt
fReleaseProc: SkData_ReleaseProc
fReleaseProcContext: *mut c_void
fPtr: *mut c_void
fSize: usize
Methods
impl SkData
[src]
pub unsafe fn copyRange(
&self,
offset: usize,
length: usize,
buffer: *mut c_void
) -> usize
[src]
&self,
offset: usize,
length: usize,
buffer: *mut c_void
) -> usize
pub unsafe fn equals(&self, other: *const SkData) -> bool
[src]
pub unsafe fn MakeWithCopy(data: *const c_void, length: usize) -> sk_sp<SkData>
[src]
pub unsafe fn MakeUninitialized(length: usize) -> sk_sp<SkData>
[src]
pub unsafe fn MakeWithCString(cstr: *const c_char) -> sk_sp<SkData>
[src]
pub unsafe fn MakeWithProc(
ptr: *const c_void,
length: usize,
proc_: SkData_ReleaseProc,
ctx: *mut c_void
) -> sk_sp<SkData>
[src]
ptr: *const c_void,
length: usize,
proc_: SkData_ReleaseProc,
ctx: *mut c_void
) -> sk_sp<SkData>
pub unsafe fn MakeFromMalloc(
data: *const c_void,
length: usize
) -> sk_sp<SkData>
[src]
data: *const c_void,
length: usize
) -> sk_sp<SkData>
pub unsafe fn MakeFromFileName(path: *const c_char) -> sk_sp<SkData>
[src]
pub unsafe fn MakeFromFILE(f: *mut FILE) -> sk_sp<SkData>
[src]
pub unsafe fn MakeFromFD(fd: c_int) -> sk_sp<SkData>
[src]
pub unsafe fn MakeFromStream(arg1: *mut SkStream, size: usize) -> sk_sp<SkData>
[src]
pub unsafe fn MakeSubset(
src: *const SkData,
offset: usize,
length: usize
) -> sk_sp<SkData>
[src]
src: *const SkData,
offset: usize,
length: usize
) -> sk_sp<SkData>
pub unsafe fn MakeEmpty() -> sk_sp<SkData>
[src]
Auto Trait Implementations
impl !Send for SkData
impl Unpin for SkData
impl !Sync for SkData
impl RefUnwindSafe for SkData
impl UnwindSafe for SkData
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,