Crate bragi

Source

Macros§

include_binding
A macro to include generated bindings from the OUT_DIR.

Structs§

Preamble
The preamble of a message. It consists of the message ID and the size of the encoded tail of the message.

Functions§

head_from_bytes
Reads the message head from the given buffer and returns the final message. The message is default initialized before decoding the head.
head_tail_from_bytes
Reads the message head and tail from the given buffers and returns the final message. The message is default initialized before decoding the head and tail.
head_tail_to_bytes
Writes the message head and tail to temporary buffers and returns the written bytes as a tuple of byte vectors.
head_to_bytes
Writes the message head to a temporary buffer and returns the written bytes.
preamble_from_bytes
Reads the message preamble from the given buffer and returns the preamble.
preamble_to_bytes
Write the message preamble to a temporary buffer and returns the written bytes.
read_head
Reads only the message head from the given reader and returns the final message. The message is default initialized before decoding the head.
read_head_tail
Reads the message head and tail from the given readers and returns the final message. The message is default initialized before decoding the head and tail.
read_preamble
Reads the preamble of a message from the given reader.
write_head
Writes the message head to the given writer.
write_head_tail
Writes the message head and tail to the given writers.
write_preamble
Writes the preamble of a message to the given writer.