Skip to main content

alphaTab.io.IWriteable

Represents a writer where binary data can be written to.

 interface IWriteable

Propertiesโ€‹

bytesWrittenโ€‹

Gets the current number of written bytes.

readonly bytesWritten: number;

Methodsโ€‹

writeโ€‹

Write data from the given buffer.

write(buffer: Uint8Array, offset: number, count: number): void
ParameterSummary
bufferAll

The buffer to get the data from.

offsetAll

The offset where to start reading the data.

countAll

The number of bytes to write

writeByteโ€‹

Write a single byte to the stream.

writeByte(value: number): void
ParameterSummary
valueAll

The value to write.