duffer library

A pure dart library offering support for netty-like byte buffer manipulation and binary serialization via a pickle inspired system

Classes

BoolPickler
ByteBuf
ByteBufAllocator
DataListPickle
DataListPickler
DataMapPickle
DataMapPickler
DataSetPickle
DataSetPickler
DateTimePickler
DelegatingByteBuf
ByteBuf implementation that forwards all methods to backing.
DoublePickler
DufferPlatformProvider
DufferVmProvider
DufferWebProvider
DurationPickler
IdentifiedPickle
IdentifiedPicklePickler
IntPickler
LinkedReadMarker
LinkedWriteMarker
MigrationUtils
A utility class for migrating ByteDatas or ByteBufs.
MonotoneListPickler<T>
Picklable<T>
Pickler<T>
PickleRegistry
PicklerImpl<T>
PickleSerializable
Pooled
A utility class for creating ByteBufAllocators.
RandomAccessFileByteBuf
A ByteBuf that stores its data in a RandomAccessFile.
Sizes
Utility class containing the sizes of different data types and helper methods to calculate the size of variable length data types.
StringPickler
Unpooled
A utility class for creating unpooled ByteBufs.

Properties

asciiEncoding Encoding
final
dufferPlatform DufferPlatformProvider
The DufferPlatformProvider is used to provide platform specific implementations.
getter/setter pair
kAlwaysCheckReadIndices bool
getter/setter pair
kDefaultByteBufSize int
getter/setter pair
kDefaultMaxByteBufSize int
getter/setter pair
kEndianness Endian
getter/setter pair
kMaxGrowth int
getter/setter pair
pickles PickleRegistry
final
utf8Encoding Encoding
final

Functions

hexDecode(String string) Uint8List
pickleObject<T>(T obj, Pickler<T> pickler) ByteBuf
unpickleObject<T>(ByteBuf buf, Pickler<T> pickler) → T

Typedefs

PickleFun<T> = dynamic Function(ByteBuf, T)
SizeFun<T> = int Function(T)
UnpickleFun<T> = T Function(ByteBuf)

Exceptions / Errors

BufferAllocatorUnknownChildException
Buffer is not a child of the allocator
BufferConstrainedException
Can't allocate more heap because of buffer constraints
BufferException
Exceptions relating to duffer buffers
BufferOverflowException
Write operation overflows buffer
BufferOverreadException
Read operation overflows buffer
BufferReleasedException
Buffer is already released
IndexNotAvailableException
The current index is not available
ReadIndexOutOfRangeException
Read operation at an overflowing index
WriteIndexOutOfRangeException
Write operation at an overflowing index