Module capnp::serialize [−][src]
Reading and writing of messages using the standard stream framing, where each message is preceded by a segment table indicating the size of its segments.
Structs
OwnedSegments | Owned memory containing a message’s segments sequentialized in a single contiguous buffer. The segments are guaranteed to be 8-byte aligned. |
SegmentLengthsBuilder | Helper object for constructing an |
SliceSegments | Segments read from a single flat slice of words. |
Functions
compute_serialized_size_in_words | Returns the number of words required to serialize the message. |
read_message | Reads a serialized message from a stream with the provided options. |
read_message_from_flat_slice | Reads a serialized message (including a segment table) from a flat slice of bytes, without copying.
The slice is allowed to extend beyond the end of the message. On success, updates |
try_read_message | Like read_message(), but returns None instead of an error if there are zero bytes left in |
write_message | Writes the provided message to |
write_message_segments | Like |
write_message_segments_to_words | Like |
write_message_to_words | Constructs a flat vector containing the entire message, including a segment header. |