Expand description
A serialized sequence of arrays, each with its buffers.
message.fbs:
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
include "vortex-array/array.fbs";
include "vortex-dtype/dtype.fbs";
enum MessageVersion: uint8 {
V0 = 0,
}
/// Indicates the message body contains a flatbuffer Array message, followed by array buffers.
table ArrayMessage {
/// The row count of the array.
row_count: uint32;
/// The encodings referenced by the array.
encodings: [string];
}
/// Indicates the body contains a regular byte buffer.
table BufferMessage {
alignment_exponent: uint8;
}
/// Indicates the body contains a flatbuffer DType message.
table DTypeMessage {}
union MessageHeader {
ArrayMessage,
BufferMessage,
DTypeMessage,
}
table Message {
version: MessageVersion = V0;
header: MessageHeader;
body_size: uint64;
}
root_type Message;Structs§
- Array
Message - Indicates the message body contains a flatbuffer Array message, followed by array buffers.
- Array
Message Args - Array
Message Builder - Buffer
Message - Indicates the body contains a regular byte buffer.
- Buffer
Message Args - Buffer
Message Builder - DType
Message - Indicates the body contains a flatbuffer DType message.
- DType
Message Args - DType
Message Builder - Message
- Message
Args - Message
Builder - Message
Header - Message
Header Union Table Offset - Message
Version
Enums§
Constants§
- ENUM_
MAX_ MESSAGE_ HEADER Deprecated - ENUM_
MAX_ MESSAGE_ VERSION Deprecated - ENUM_
MIN_ MESSAGE_ HEADER Deprecated - ENUM_
MIN_ MESSAGE_ VERSION Deprecated - ENUM_
VALUES_ MESSAGE_ HEADER Deprecated - ENUM_
VALUES_ MESSAGE_ VERSION Deprecated
Functions§
- finish_
message_ buffer - finish_
size_ prefixed_ message_ buffer - root_
as_ message - Verifies that a buffer of bytes contains a
Messageand 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_message_unchecked. - root_
as_ ⚠message_ unchecked - Assumes, without verification, that a buffer of bytes contains a Message and returns it.
- root_
as_ message_ with_ opts - Verifies, with the given options, that a buffer of bytes
contains a
Messageand 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_message_unchecked. - size_
prefixed_ root_ as_ message - Verifies that a buffer of bytes contains a size prefixed
Messageand 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_message_unchecked. - size_
prefixed_ ⚠root_ as_ message_ unchecked - Assumes, without verification, that a buffer of bytes contains a size prefixed Message and returns it.
- size_
prefixed_ root_ as_ message_ with_ opts - Verifies, with the given verifier options, that a buffer of
bytes contains a size prefixed
Messageand 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_message_unchecked.