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.enforceBytes

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

const ubyte[] enforceBytes(
    bool advanceCursor
)(
    size_t count
);

Documentation

The same thing as tryBytes, but throws an Exceptionif there's not enough bytes to read, which allows the function to return the value directly and rely on try-catch for error handling.

ON THIS PAGE