code: public static void writeShort(byte b[], int offset, short value) {
      b[offset++] = (byte) (value >>> 8);
      b[offset] = (byte)value;
    }
docs: Serializes a short into a byte array at a specific offset in big-endian order
  
  @param b byte array in which to write a short value.
  @param offset offset within byte array to start writing.
  @param value short to write to byte array.