Tokenizer class abstract
Abstract base class for tokenizers that read and parse binary audio data
Tokenizers provide a sequential or random-access interface for reading bytes from audio data sources. They expose capabilities (peek, seek) to determine what operations are supported.
Corresponds to the tokenizer contract in the upstream music-metadata library.
- Implementers
Constructors
Properties
- canSeek → bool
-
Whether this tokenizer supports random access (seek operations)
no setter
- fileInfo → FileInfo?
-
File information metadata about the source
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- position → int
-
Current position in the stream (in bytes)
no setter
- 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
-
peekBytes(
int length) → List< int> - Peek at N bytes without advancing position
-
peekUint8(
) → int - Peek at a single byte (unsigned 8-bit integer) without advancing position
-
readBytes(
int length) → List< int> - Read N bytes and advance position
-
readUint16(
) → int - Read 2 bytes (unsigned 16-bit integer, big-endian) and advance position
-
readUint32(
) → int - Read 4 bytes (unsigned 32-bit integer, big-endian) and advance position
-
readUint8(
) → int - Read a single byte (unsigned 8-bit integer) and advance position
-
seek(
int position) → void - Seek to an absolute position
-
skip(
int length) → void - Skip N bytes forward (advance position)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited