struct

BSON::Binary::Vector

Inherits Struct < Value < Object

Constructors

from_binary_data(data : Bytes) : self

Parses vector data from a raw byte slice.

NOTE: Returns a Vector holding a zero-copy slice view over the underlying buffer memory. Modifying the original byte buffer will modify the vector's content.

Source
new(dtype : DataType, data : Bytes, padding : UInt8 = 0_u8)
Source

Instance methods

as_float32

Returns a zero-copy Slice over the underlying bytes. Assumes the executing system uses Little Endian (standard for BSON targets like x86/ARM).

Source
as_int8

Returns a zero-copy Slice over the underlying bytes.

Source
as_packed_bit

Directly returns the underlying Bytes slice since PackedBit maps cleanly to UInt8 arrays.

Source
data
Source
dtype
Source
padding
Source
to_binary_data
Source

Nested types