Allocator class abstract

The interface that Builder uses to allocate buffers for encoding.

Implementers

Constructors

Allocator()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocate(int size) ByteData
Allocate a ByteData buffer of a given size.
deallocate(ByteData data) → void
Free the given ByteData buffer previously allocated by allocate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resize(ByteData oldData, int newSize, int inUseBack, int inUseFront) ByteData
Reallocate newSize bytes of memory, replacing the old oldData. This grows downwards, and is intended specifically for use with Builder. Params inUseBack and inUseFront indicate how much of oldData is actually in use at each end, and needs to be copied.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited