BinaryStream.mayRead

Checks if there are enough elements left in the data array to read T.

  1. bool mayRead()
    class BinaryStream
    final
    bool
    mayRead
    (
    T
    )
    ()
  2. bool mayRead(size_t size)

Parameters

T

The type to check if can be read.

Return Value

Type: bool

True if there are at least T.sizeof bytes left to read from the current position.

Meta