binary_serializable library

Efficient binary serialization and deserialization, optimized for streams of binary data.

Classes

ArrayType<T>
A BinaryType for lists containing a fixed number of elements.
BinaryConversion<T>
An ongoing conversion of binary data to a Dart object.
BinarySerializable
An annotation to indicate binary_serializable_generator should generate a BinaryType for a class.
BinaryType<T>
A Codec specialized for converting binary data.
BoolType
A BinaryType for bools.
BufferConversion
A BinaryConversion that produces a buffer containing a set amount of bytes.
BufferType
A BinaryType for reading buffers of a given length.
BytesBuilder
Builds a list of bytes, allowing bytes and lists of bytes to be added at the end.
CompositeBinaryConversion<T>
A BinaryConversion that composes multiple BinaryConversions to form a composite object.
FloatType
A BinaryType for doubles.
Generic
A marker value to be used in place of a generic BinaryType.
IntegerType
A BinaryType for ints.
LengthPrefixedListType<T>
A BinaryType for variable length lists prefixed with an integer value indicating their length.
MultiBinaryType<T, U>
A BinaryType that selects one of multiple other BinaryTypes to serialize an object based on fields common to all possible types.
NullTerminatedStringType
A BinaryType for Strings encoded with a null-terminating byte.
Uint8List
A fixed-length list of 8-bit unsigned integers.

Constants

asciiString → const NullTerminatedStringType
A BinaryType for ASCII Strings encoded with a null-terminating byte.
float32 → const FloatType
A BinaryType for IEEE 754 single-precision binary floating-point numbers.
float64 → const FloatType
A BinaryType for IEEE 754 double-precision binary floating-point numbers.
int16 → const IntegerType
A BinaryType for ints encoded as two's complement 16-bit integers.
int32 → const IntegerType
A BinaryType for ints encoded as two's complement 32-bit integers.
int64 → const IntegerType
A BinaryType for ints encoded as two's complement 64-bit integers.
int8 → const IntegerType
A BinaryType for ints encoded as two's complement 8-bit integers.
latin1String → const NullTerminatedStringType
A BinaryType for ISO Latin 1 Strings encoded with a null-terminating byte.
uint16 → const IntegerType
A BinaryType for ints encoded as unsigned 16-bit integers.
uint32 → const IntegerType
A BinaryType for ints encoded as unsigned 32-bit integers.
uint64 → const IntegerType
A BinaryType for ints encoded as unsigned 64-bit integers.
uint8 → const _Uint8Type
A BinaryType for ints encoded as unsigned 8-bit integers.
utf8String → const NullTerminatedStringType
A BinaryType for UTF-8 Strings encoded with a null-terminating byte.