code: private void writeUShort(int pos, int s) {
          byte b1 = (byte)((s >> 8) & 0xff);
          byte b2 = (byte)(s & 0xff);
          output[pos] = b1;
          output[pos + 1] = b2;
      }
docs: Appends a USHORT to the output array,
  at the given position without changing currentPos
  
  @param pos The position to write to
  @param s The short to be written