Module vortex_flatbuffers::scalar
source · Expand description
A serialized scalar.
scalar.fbs
:
include "vortex-dtype/dtype.fbs";
table Scalar {
dtype: DType (required);
value: ScalarValue (required);
}
table ScalarValue {
flex: [ubyte] (required, flexbuffer);
}
root_type Scalar;
Structs§
Enums§
Functions§
- Verifies that a buffer of bytes contains a
Scalar
and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_scalar_unchecked
. - Assumes, without verification, that a buffer of bytes contains a Scalar and returns it.
- Verifies, with the given options, that a buffer of bytes contains a
Scalar
and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_scalar_unchecked
. - Verifies that a buffer of bytes contains a size prefixed
Scalar
and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior usesize_prefixed_root_as_scalar_unchecked
. - Assumes, without verification, that a buffer of bytes contains a size prefixed Scalar and returns it.
- Verifies, with the given verifier options, that a buffer of bytes contains a size prefixed
Scalar
and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_scalar_unchecked
.