[−][src]Struct arrow::buffer::Buffer
Buffer is a contiguous memory region of fixed size and is aligned at a 64-byte boundary. Buffer is immutable.
Methods
impl Buffer[src]
impl Bufferpub fn from_raw_parts(ptr: *const u8, len: usize) -> Self[src]
pub fn from_raw_parts(ptr: *const u8, len: usize) -> SelfCreates a buffer from an existing memory region (must already be byte-aligned)
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeReturns the number of bytes in the buffer
pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolReturns whether the buffer is empty.
pub fn data(&self) -> &[u8][src]
pub fn data(&self) -> &[u8]Returns the byte slice stored in this buffer
pub fn slice(&self, offset: usize) -> Self[src]
pub fn slice(&self, offset: usize) -> SelfReturns a slice of this buffer, starting from offset.
pub fn raw_data(&self) -> *const u8[src]
pub fn raw_data(&self) -> *const u8Returns a raw pointer for this buffer.
Note that this should be used cautiously, and the returned pointer should not be stored anywhere, to avoid dangling pointers.
pub fn empty() -> Self[src]
pub fn empty() -> SelfReturns an empty buffer.
Trait Implementations
impl PartialEq<Buffer> for Buffer[src]
impl PartialEq<Buffer> for Bufferimpl From<Buffer> for Bitmap[src]
impl From<Buffer> for Bitmapimpl<T: AsRef<[u8]>> From<T> for Buffer[src]
impl<T: AsRef<[u8]>> From<T> for BufferCreating a Buffer instance by copying the memory from a AsRef<[u8]> into a newly
allocated memory region.
impl Send for Buffer[src]
impl Send for Bufferimpl Clone for Buffer[src]
impl Clone for Bufferfn clone(&self) -> Buffer[src]
fn clone(&self) -> Bufferfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Sync for Buffer[src]
impl Sync for Bufferimpl Debug for Buffer[src]
impl Debug for BufferBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId