readRIFFChunkHeader

Reads a RIFF chunk header from an input range.

@nogc nothrow
void
readRIFFChunkHeader
(
ref const(ubyte)[] input
,
out uint chunkId
,
out uint chunkSize
,
bool* err
)

Parameters

input const(ubyte)[]

ubyte input range.

chunkId uint

RIFF chunk id.

chunkSize uint

Chunk size.

err bool*

true if input error.

On failure, *err is set to true and chunkId and chunkSize are undefined. The input range cannot be used anymore. RIFF: http://www.daubnet.com/en/file-format-riff

Meta