[][src]Trait core_graphics::data_provider::CustomData

pub trait CustomData {
    pub unsafe fn ptr(&self) -> *const u8;
pub unsafe fn len(&self) -> usize; }

Encapsulates custom data that can be wrapped.

Required methods

pub unsafe fn ptr(&self) -> *const u8[src]

Returns a pointer to the start of the custom data. This pointer must not change during the lifespan of this CustomData.

pub unsafe fn len(&self) -> usize[src]

Returns the length of this custom data. This value must not change during the lifespan of this CustomData.

Loading content...

Implementors

Loading content...