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
- Legacy
DynString - Member
- Queue
Iterator - Static
String Dependency - StaticStringDependency serializes the value of the pointer and the contents of the string It is designed to be wire-compatible with the unreal instrumentation
- User
Defined Type - Utf8
Static String Dependency - 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§
- InProc
Size - Helps speed up the serialization of types which size is known at compile time.
Traits§
Functions§
- advance_
window - Trusted-path window advance: panics if
offsetexceeds the window length. Only safe to use on same-process, self-produced buffers (in-proc queue reads). Payload-derived (untrusted) offsets must usetry_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 thansize_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 usetry_read_consume_pod. - read_
dependencies - try_
advance_ window - Checked variant of
advance_window: returnsErrinstead of panicking whenoffsetexceeds 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: returnsErrinstead of panicking when the window is shorter thansize_of::<T>(). Use for payload-derived (untrusted) windows. - try_
read_ pod_ at - Bounds-checked read of a POD value at
offsetwithinwindow. Replacesread_any(window.as_ptr().add(offset))on untrusted windows — bothoffsetandsize_of::<T>()may originate from untrusted stream metadata, so their sum is validated withchecked_addbefore the window length check. - write_
any
Type Aliases§
- Custom
Reader - A reader for a custom (dynamically-sized) transit type.
- Custom
Reader Map