PsBinaryWriter class final
Growable big-endian output used by the PSD writer.
Scalars are written straight into one reusable buffer, so encoding a large structure costs no allocation per field.
Constructors
- PsBinaryWriter({int initialCapacity = _minimumCapacity})
-
Creates a writer whose buffer starts at
initialCapacitybytes.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
takeBytes(
) → Uint8List - Returns all written bytes and resets this writer.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeBigInt64(
BigInt value) → void - Writes a signed 64-bit integer without narrowing it to a platform integer.
-
writeBytes(
List< int> value) → void - Appends arbitrary bytes.
-
writeFloat32(
double value) → void - Writes a big-endian single-precision floating-point value.
-
writeFloat64(
double value) → void - Writes a big-endian double-precision floating-point value.
-
writeInt16(
int value) → void - Writes a signed 16-bit integer.
-
writeInt32(
int value) → void - Writes a signed 32-bit integer.
-
writeInt64(
int value) → void - Writes a signed 64-bit integer.
-
writeLength(
int value, {required bool wide}) → void - Writes either a 32-bit or 64-bit section length.
-
writeString(
String value) → void - Writes a fixed-size character string.
-
writeUint16(
int value) → void - Writes an unsigned 16-bit integer.
-
writeUint16List(
List< int> value) → void -
Writes every code unit of
valueas a big-endian 16-bit integer. -
writeUint32(
int value) → void - Writes an unsigned 32-bit integer.
-
writeUint64(
int value) → void - Writes an unsigned 64-bit integer.
-
writeUint8(
int value) → void - Writes an unsigned byte.
-
writeZeros(
int count) → void - Writes zero padding.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited