Module arrow_buffer::buffer
source · Expand description
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
MutableBufferis Arrow’s interface to build aBufferout of items or slices of items.Buffers 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, andintoto convert it toBuffer. - A non-empty buffer of monotonically increasing, positive integers
- Provides a safe API for interpreting a
Bufferas a slice ofArrowNativeType
Functions
- Apply a bitwise operation
opto two inputs and return the result as a Buffer. The inputs are treated as bitmaps, meaning that offsets and length are specified in number of bits. - Apply a bitwise operation
opto four inputs and return the result as a Buffer. The inputs are treated as bitmaps, meaning that offsets and length are specified in number of bits. - Apply a bitwise operation
opto one input and return the result as a Buffer. The input is treated as a bitmap, meaning that offset and length are specified in number of bits.