Expand description
Module codec
provides support for encoding and decoding messages to or from the TLS wire
encoding, as specified in RFC 8446, Section 3. It provides traits that can be implemented
on values that need to be encoded or decoded, as well as utility functions for encoding
sequences of values.
Enums
Traits
Describes how to decode an object from a byte sequence.
Describes how to encode objects into a byte sequence.
Describes how to decode an object from a byte sequence, with a decoding parameter provided to provide additional data used in decoding.
Describes how to encode objects into a byte sequence.
Functions
Decode bytes
into a vector of D
values, treating bytes
as a variable-length vector of
maximum length 0xff
.
Decode bytes
into a vector of D
values, treating bytes
as a variable-length vector of
maximum length 0xffff
.
Decode bytes
into a vector of D
values, treating bytes
as a variable-length vector of
maximum length 0xffffff
.
Encode items
into bytes
as a variable-length vector with a maximum length of 0xff
.
Encode items
into bytes
as a variable-length vector with a maximum length of 0xffff
.
Encode items
into bytes
as a variable-length vector with a maximum length of
0xffffff
.