code: public final void writeTTFUShort(int pos, int val) throws IOException {
          if ((pos + 2) > fsize) {
              throw new java.io.EOFException("Reached EOF");
          }
          final byte b1 = (byte)((val >> 8) & 0xff);
          final byte b2 = (byte)(val & 0xff);
          file[pos] = b1;
          file[pos + 1] = b2;
      }
docs: Write a USHort at a given position.
  
  @param pos The absolute position to write to
  @param val The value to write
  @throws IOException If EOF is reached