cobs library

Classes

DecodeResult
Status and length container of decodeCOBS() result.
EncodeResult
Status and length container of encodeCOBS() result.

Functions

decodeCOBS(ByteData decoded, ByteData source) DecodeResult
Decode source to decoded using COBS and return DecodeResult status. [...]
decodeCOBSStream(Stream<ByteData> source) Stream<ByteData>
Decodes a stream of COBS-encoded bytes into packets of decoded bytes. [...]
decodeDstBufMaxLen(int srcLen) int
Determine maximum decoded byte length for source containing srcLen bytes.
encodeCOBS(ByteData encoded, ByteData source, {bool withZero = false}) EncodeResult
Encode source to encoded using COBS and return EncodeResult status. [...]
encodeDstBufMaxLen(int srcLen, {bool withZero = false}) int
Determine maximum encoded byte length for source containing srcLen bytes. [...]

Enums

DecodeStatus
decodeCOBS() status types.
EncodeStatus
encodeCOBS() status types