canRead method

bool canRead(
  1. int length
)

Returns true if at the current position it's possible to read length bytes.

Implementation

bool canRead(int length) => position + length <= this.length;