read method

int read()

Fetch a single byte at the current instruction pointer

Implementation

int read() {
  if (ip >= 0 && ip < bytes.length) {
    return bytes[ip++];
  } else {
    ip = 0;
    return HTOpCode.endOfCode;
  }
}