Arrow buffers — contiguous memory regions backing arrays.
Buffers hold the raw data, validity bitmap, and offsets for Arrow arrays. They are the lowest-level building block of the columnar format.
Types
GBuffer = object handle*: ptr GArrowBuffer
- Wrapper for an Arrow GArrowBuffer, a contiguous region of bytes.
Procs
proc `=destroy`(x: GBuffer) {....raises: [], tags: [], forbids: [].}
proc `=wasMoved`(x: var GBuffer) {....raises: [], tags: [], forbids: [].}
proc dataPointer(buffer: GBuffer): pointer {....raises: [], tags: [], forbids: [].}
- Returns a read-only pointer to the buffer's data. The pointer is only valid while the buffer lives. Returns nil if the buffer handle is nil.
proc toPtr(x: GBuffer): ptr GArrowBuffer {.inline, ...raises: [], tags: [], forbids: [].}