Module arrow2::buffer [−][src]
Expand description
This module contains core functionality to handle memory in this crate.
The core containers of this module are MutableBuffer
and Buffer
.
MutableBuffer
is like Vec
, with the following main differences:
- it only supports types that implement
super::types::NativeType
- it allocates memory along cache lines.
- it is not clonable.
Buffer
is the immutable counterpart ofMutableBuffer
.
Structs
Buffer represents a contiguous memory region that can be shared with other buffers and across thread boundaries.
A MutableBuffer
is this crates’ interface to store types that are byte-like, such as i32
.
It behaves like a Vec
, with the following differences: