BinaryReader.readUntil

Reads bytes until stop is found.

Returned array can be empty if input stream is empty.

struct BinaryReader(Range = ubyte[])
ubyte[]
readUntil
(
ubyte stop
,
bool next = true
)
if (
isInputRange!Range &&
is(ElementType!Range == ubyte)
)

Parameters

stop
Type: ubyte

Value to read until

next
Type: bool

If true, input stream is moved to next byte.

Return Value

Type: ubyte[]

Array of bytes.

Meta