InlineBytes class base

A destination for a blob field — and, through InlineString, for a string.

Implementers

Constructors

InlineBytes(int capacity)
Storage for capacity bytes, empty.
InlineBytes.of(List<int> bytes)
A copy of bytes, length set to match.

Properties

capacity → int
How many bytes storage holds.
no setter
hashCode → int
The hash code for this object.
no setterinherited
length ↔ int
The number of bytes in use.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage ↔ Uint8List
The bytes; the first length are in use.
getter/setter pair

Methods

assign(List<int> bytes) → void
Replaces the contents with bytes, growing storage if it must.
ensureCapacity(int n) → void
Grows storage to hold at least n bytes, keeping the first length.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() → Uint8List
The bytes in use, copied into a new list.
toString() → String
A string representation of this object.
inherited

Operators

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