Crate arrow_buffer
source ·Expand description
Buffer abstractions for Apache Arrow
Modules
- Defines memory-related functions, such as allocate/deallocate/reallocate memory regions, cache and allocation alignments.
- Types for iterating over bitmasks in 64-bit chunks
- Utils for working with bits
- This module contains two main structs: Buffer and MutableBuffer. A buffer represents a contiguous memory region that can be shared via
offsets
.
Structs
- Buffer represents a contiguous memory region that can be shared with other buffers and across thread boundaries.
- A
MutableBuffer
is Arrow’s interface to build aBuffer
out of items or slices of items.Buffer
s created fromMutableBuffer
(viainto
) are guaranteed to have its pointer aligned along cache lines and in multiple of 64 bytes. Use MutableBuffer::push to insert an item, MutableBuffer::extend_from_slice to insert many items, andinto
to convert it toBuffer
. - A signed 256-bit integer
Traits
- Trait expressing a Rust type that has the same in-memory representation as Arrow. This includes
i16
,f32
, but excludesbool
(which in arrow is represented in bits). - Allows conversion from supported Arrow types to a byte slice.