Skip to main content

Crate micromegas_transit

Crate micromegas_transit 

Source
Expand description

transit library provides fast binary serialization for Plain Old Data structures

Modules§

prelude
string_codec
string encoding
uuid_utils
uuid encoding
value
json-like variant

Structs§

DynBlob
DynString
LegacyDynString
Member
QueueIterator
StaticStringDependency
StaticStringDependency serializes the value of the pointer and the contents of the string It is designed to be wire-compatible with the unreal instrumentation
UserDefinedType
Utf8StaticStringDependency
Utf8StaticStringDependency serializes the value of the pointer and the contents of the string It should not be part of the event - it’s the dependency of the StringId

Enums§

InProcSize
Helps speed up the serialization of types which size is known at compile time.

Traits§

HeterogeneousQueue
InProcSerialize
Reflect

Functions§

advance_window
Trusted-path window advance: panics if offset exceeds the window length. Only safe to use on same-process, self-produced buffers (in-proc queue reads). Payload-derived (untrusted) offsets must use try_advance_window.
parse_object_buffer
parse_pod_instance
read_advance_string
Parse string from buffer, move buffer pointer forward.
read_advance_string_in
Parse a string from the buffer, moving the buffer pointer forward.
read_any
Helper function to read a u* pointer to a value of type T.
read_consume_pod
Trusted-path pod read: panics (via advance_window’s assert) if the window is shorter than size_of::<T>(). Only safe to use on same-process, self-produced buffers (in-proc queue reads, e.g. InProcSerialize::read_value). Payload-derived (untrusted) windows must use try_read_consume_pod.
read_dependencies
try_advance_window
Checked variant of advance_window: returns Err instead of panicking when offset exceeds the window length. Use for payload- or metadata-derived offsets, which must be treated as untrusted.
try_read_consume_pod
Checked variant of read_consume_pod: returns Err instead of panicking when the window is shorter than size_of::<T>(). Use for payload-derived (untrusted) windows.
try_read_pod_at
Bounds-checked read of a POD value at offset within window. Replaces read_any(window.as_ptr().add(offset)) on untrusted windows — both offset and size_of::<T>() may originate from untrusted stream metadata, so their sum is validated with checked_add before the window length check.
write_any

Type Aliases§

CustomReader
A reader for a custom (dynamically-sized) transit type.
CustomReaderMap