Skip to main content

Module bytes

Module bytes 

Expand description

byte-slice utilities

Modules§

ct
Constant-time byte-slice comparison.
serde_base64
Compact Serde representation for opaque bytes. Serialize byte fields as base64 strings. Serialization borrows the bytes without allocating an intermediate string. Owned deserialization allocates only its decoded output. Large capture payloads should use a raw record stream instead of an owned Serde field.
serde_hex
Configurable hex Serde representation for opaque bytes. Serialize byte fields as hex strings, with one adapter for vectors and arrays.