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