Skip to main content

Module hex

Module hex 

Source
Expand description

Hex encoding of record bytes.

One record, one lowercase hex string — the paste format for byte-level tools (e.g. wirescope’s hex input). Encoding operates on the record’s original bytes (see BgpkitParser::into_filtered_raw_record_iter), never on a re-encoding of the parsed model, so attribute ordering quirks (e.g. BGP-LS hash-map iteration order) cannot alter the output.

Functions§

encode
Encode bytes as a single lowercase hex string (no separators).