BytesWriter class

Utility class to construct a byte buffer by writing little endian ints and floats etc. Every write operation appends to the end of the buffer.

Constructors

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

getSampleWriter(WavFormat format) SampleWriter
Returns a closure that reads samples of the given format from this buffer. Calling these closures advances the read head of this buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
takeBytes() Uint8List
Takes the byte buffer from this and clears this.
toString() String
A string representation of this object.
inherited
writeString(String s) → void
Writes string s to the buffer. s must be ASCII only.
writeUint16(int x) → void
Writes a Uint16 to the buffer.
writeUint24(int x) → void
Writes a Uint24 to the buffer.
writeUint32(int x) → void
Writes a Uint32 to the buffer.
writeUint8(int x) → void
Writes a Uint8 to the buffer.

Operators

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