Struct dbkit_engine::allocator::OwnedChunk
[−]
[src]
pub struct OwnedChunk<'a> { pub data: Option<&'a mut [u8]>, pub align: usize, // some fields omitted }
Chunk with an allocator owner
Fields
data: Option<&'a mut [u8]>
align: usize
Methods
impl<'a> OwnedChunk<'a>
[src]
fn empty() -> OwnedChunk<'static>
fn is_null(&self) -> bool
fn len(&self) -> usize
unsafe fn as_ptr(&self) -> *const u8
unsafe fn as_mut_ptr(&mut self) -> *mut u8
fn resize(&mut self, size: usize) -> Option<DBError>
Attempt to resize the chunk. If possible it will attempt to resize in-place, if not possible it will create new alloc and copy the old data.