Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions MemoryReader.tryBytes

1
2
3
4
5
6
7
8
module juptune.data.buffer;

bool tryBytes(
    bool advanceCursor
)(
    size_t count, 
    const ubyte[] result
);

Documentation

Attempts to read a sequence of bytes from the buffer, and then optionally advances the cursor.

Notes

Generally, you should use the read*and peek*aliases instead of this function directly.

If you're in @gc code, then you can also use the enforce*Bytesfunctions instead.

Params

Returns

trueif there's enough bytes to read in the value, falseotherwise.