convert library

Common contracts for binary codecs. Each call processes an independent unit.

Classes

ByteCodec
A shareable configuration. A session owns its scratch space in one isolate.
ByteCodecOperations
ByteCodecSession

Mixins

StatelessByteCodec
Stateless implementations may also act as sessions.

Functions

checkDecodedLength(int written, int? expectedLength) → int
copyCodecOutput(Uint8List bytes, Uint8List destination) → int
decodeLimit(int? expectedLength, int? maxOutputLength) → int?
Resolves the strictest output bound before allocating or decoding.