code: public final static void writeExtendedMediumInt(ByteBuffer out, int value) {
          value = ((value & 0xff000000) >> 24) | (value << 8);
          out.putInt(value);
      }
docs: Writes extended medium integer (equivalent to a regular integer whose most significant byte has been moved to its end, past its least significant byte)
  
  @param out
  Output buffer
  @param value
  Integer to write