isFNC1 method

bool isFNC1(
  1. int index
)

Determines if a value is the FNC1 character

@param index the index of the value

@return true if the value at position index is the FNC1 character

@throws IndexOutOfBoundsException if the index argument is negative or not less than length

Implementation

bool isFNC1(int index) {
  if (index < 0 || index >= length) {
    // IndexOutOfBoundsException
    throw IndexError.withLength(index, length);
  }
  return bytes[index] == 1000;
}