Struct flatdata::MemoryDescriptor
[−]
[src]
pub struct MemoryDescriptor { /* fields omitted */ }Describes a chunk of memory
Methods
impl MemoryDescriptor[src]
Describes a contiguous constant chunk of memory.
pub fn new(ptr: *const u8, size: usize) -> MemoryDescriptor[src]
Creates a new memory descriptor from a pointer and its size in bytes.
pub fn data(&self) -> *const u8[src]
Returns pointer to the first byte of the chunk.
pub fn size_in_bytes(&self) -> usize[src]
Returns size of chunk in bytes.
Trait Implementations
impl Debug for MemoryDescriptor[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for MemoryDescriptor[src]
fn clone(&self) -> MemoryDescriptor[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for MemoryDescriptor[src]
fn default() -> MemoryDescriptor[src]
Returns the "default value" for a type. Read more