Unpooled class
A utility class for creating unpooled ByteBufs.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buffer(
{int? initialCapacity, int? maxCapacity}) → ByteBuf -
Creates a new ByteBuf with the default ByteBuf.capacity of kDefaultByteBufSize or if specified
initialCapacity
and the default ByteBuf.maxCapacity of kDefaultMaxByteBufSize or if specifiedmaxCapacity
. -
copyBuffer(
ByteBuf original) → ByteBuf -
Copies the contents of
original
to a new ByteBuf. The capacity parameters of the returned ByteBuf are equal tooriginal
. -
copyBytes(
List< int> bytes) → ByteBuf -
Copies the
bytes
to a new ByteBuf. -
fixed(
int size) → ByteBuf -
Creates a new ByteBuf with both ByteBuf.capacity and ByteBuf.maxCapacity
being set to
size
. -
wrapBuffer(
Uint8List native) → ByteBuf -
Wraps the
native
buffer using aListBuffer
, not allocating more memory.