code: public static void writeUnsignedShortLittleEndian(byte[] buffer, int offset, int value) {
  		buffer[offset++] = (byte)(value & 0xFF);
  		buffer[offset] = (byte)((value >> 8) & 0xFF);
  	}
docs: little-endian or intel format.