dplug.core.binrange

Utilities for parsing and emitting binary data from input ranges, or to output ranges. It is unwise to depend on this outside of Dplug internals.

Members

Functions

popBE
T popBE(const(ubyte)[] input, bool* err)

Reads a big endian integer from input.

popLE
T popLE(const(ubyte)[] input, bool* err)

Reads a little endian integer from input.

readRIFFChunkHeader
void readRIFFChunkHeader(const(ubyte)[] input, uint chunkId, uint chunkSize, bool* err)
skipBytes
void skipBytes(const(ubyte)[] input, int numBytes, bool* err)

Skip bytes in input range.

writeBE
void writeBE(R output, T n)

Writes a big endian integer/float to output.

writeLE
void writeLE(R output, T n)

Writes a little endian integer/float to output.

writeRIFFChunkHeader
void writeRIFFChunkHeader(R output, uint chunkId, uint chunkSize)

Writes a RIFF chunk header to an output range.

Templates

RIFFChunkId
template RIFFChunkId(string id)

Meta

Authors

Guillaume Piolat