get method

int get()

Get a single byte */

Implementation

int get() {
  if (readPos < length) {
    return array[readPos++];
  }
  throw 'Read past end of buffer';
}