Expand description
Low-level frame and field encoding helpers.
Structs§
- Frame
- A parsed length-prefixed frame and the remaining bytes after it.
Traits§
- TwsField
- TWS field serialization used by
make_field. - TwsNullable
Field - TWS field serialization used by
make_field_handle_empty.
Functions§
- make_
client_ handshake - Builds the full
API\0enhanced handshake. - make_
field - Encodes a NUL-terminated field.
- make_
field_ handle_ empty - Encodes a NUL-terminated field, mapping unset integer/double sentinels to an empty value.
- make_
initial_ msg - Builds the enhanced-handshake message body, including the 4-byte length prefix.
- make_
msg - Builds a length-prefixed field-based payload.
- make_
msg_ proto - Builds a length-prefixed protobuf payload with a raw 4-byte message id.
- read_
fields - Splits a payload into NUL-terminated fields, dropping the final empty segment like Python.
- read_
msg - Reads one complete frame from
buf.