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