Crate cobs [] [src]

Functions

decode

Decodes the source buffer into the dest buffer.

decode_in_place

Decodes a message in-place.

decode_in_place_with_sentinel

Decodes a message in-place using an arbitrary sentinel value.

decode_vec

Decodes the source buffer into a vector.

decode_vec_with_sentinel

Decodes the source buffer into a vector with an arbitrary sentinel value.

decode_with_sentinel

Decodes the source buffer into the dest buffer using an arbitrary sentinel value.

encode

Encodes the source buffer into the dest buffer.

encode_vec

Encodes the source buffer into a vector.

encode_vec_with_sentinel

Encodes the source buffer into a vector with an arbitrary sentinel value.

encode_with_sentinel

Encodes the source buffer into the dest buffer using an arbitrary sentinel value.

max_encoding_length

Calculates the maximum possible size of an encoded message given the length of the source message. This may be useful for calculating how large the dest buffer needs to be in the encoding functions.