Crate darkbio_cobs

Crate darkbio_cobs 

Source

Enums§

DecodeError
Error types that can be returned from decoding.
EncodeError
Error types that can be returned from encoding.

Functions§

decode
Decodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the decoding took. Returns an error if the output buffer is too small or if the input is malformed.
decode_buffer
Computes the maximum size needed to COBS decode a blind input data.
decode_unsafe
Decodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the decoding took.
encode
Encodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the encoding took. Returns an error if the output buffer is too small.
encode_buffer
Computes the maximum size needed to COBS encode a blind input blob.
encode_unsafe
Encodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the encoding took.