code: public final static void writeMediumInt(ByteBuffer out, int value) {
          out.put((byte) ((value >>> 16) & 0xff));
          out.put((byte) ((value >>> 8) & 0xff));
          out.put((byte) (value & 0xff));
      }
docs: Writes medium integer
  
  @param out
  Output buffer
  @param value
  Integer to write