cobs2 library
Classes
- DecodeResult
- Status and length container of decodeCOBS() result.
- EncodeResult
- Status and length container of encodeCOBS() result.
Enums
- DecodeStatus
- decodeCOBS() status types.
- EncodeStatus
- encodeCOBS() status types
Functions
-
decodeCOBS(
ByteData decoded, ByteData source) → DecodeResult -
Decode
source
todecoded
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
toencoded
using COBS and return EncodeResult status. -
encodeDstBufMaxLen(
int srcLen, {bool withZero = false}) → int -
Determine maximum encoded byte length for source containing
srcLen
bytes.