[][src]Struct arrow::buffer::Buffer

pub struct Buffer { /* fields omitted */ }

Buffer is a contiguous memory region of fixed size and is aligned at a 64-byte boundary. Buffer is immutable.

Methods

impl Buffer
[src]

Creates a buffer from an existing memory region (must already be byte-aligned)

Returns the number of bytes in the buffer

Returns whether the buffer is empty.

Returns the byte slice stored in this buffer

Returns a slice of this buffer, starting from offset.

Returns 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.

Returns an empty buffer.

Trait Implementations

impl PartialEq<Buffer> for Buffer
[src]

impl Clone for Buffer
[src]

Performs copy-assignment from source. Read more

impl From<Buffer> for Bitmap
[src]

impl<T: AsRef<[u8]>> From<T> for Buffer
[src]

Creating a Buffer instance by copying the memory from a AsRef<[u8]> into a newly allocated memory region.

impl Send for Buffer
[src]

impl Sync for Buffer
[src]

impl Debug for Buffer
[src]

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.