BinaryStream.mayRead

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

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

Parameters

size size_t

The number of elements to try to read. Defaults to 1.

Return Value

Type: bool

True if there are at least size elements left to read from the current position.

Meta