BytesWriter class abstract

Defines the base class supporting writes to a stream of bytes

Implementers

Constructors

BytesWriter({Encoding? stringEncoder})
Builds a new BytesWriter

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

encodeString(String s) List<int>
Encodes a String s with the configured Encoding
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
takeBytes() Uint8List
Takes the list of bytes from the buffer as a Uint8List
toString() String
A string representation of this object.
inherited
write(dynamic d) → void
Writes a dynamic value into the buffer
writeBinary(Uint8List buffer) → void
Writes a Uint8List into the buffer
writeBool(bool b) → void
Writes bool b into the buffer
writeByteData(ByteData buffer) → void
Writes a buffer of bytes
writeBytes(List<int> bytes) → void
Writes a list of bytes
writeDouble(double n) → void
Writes double n into the buffer
writeFloat32(double f, [Endian endian = Endian.big]) → void
Writes a float32 f into the buffer
writeFloat64(double d, [Endian endian = Endian.big]) → void
Writes a float64 d into the buffer
writeInt(int n) → void
Writes int n into the buffer
writeInt16(int i, [Endian endian = Endian.big]) → void
Writes a int16 i in the buffer
writeInt32(int i, [Endian endian = Endian.big]) → void
Writes a int32 i into the buffer
writeInt64(int i, [Endian endian = Endian.big]) → void
Writes a int64 i into the buffer
writeInt8(int i) → void
Writes a int8 i into the buffer
writeIterable(Iterable iterable) → void
Writes a Iterable into the buffer
writeMap(Map map) → void
Writes a Map into the buffer
writeNull() → void
Writes null
writeString(String s) → void
Writes a String s into the buffer
writeUint16(int i, [Endian endian = Endian.big]) → void
Writes a uint16 i into the buffer
writeUint32(int i, [Endian endian = Endian.big]) → void
Writes a uint32 i into the buffer
writeUint64(int i, [Endian endian = Endian.big]) → void
Writes a uint64 i into the buffer
writeUint8(int i) → void
Writes a Uint8 i into the buffer

Operators

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