code: public static byte[] intToNetworkByteOrder(int num, int count) {
          byte[] buf = new byte[count];
          intToNetworkByteOrder(num, buf, 0, count);
          
          return buf;
      }
docs: Encodes an integer into up to 4 bytes in network byte order.
  
  @param num the int to convert to a byte array
  @param count the number of reserved bytes for the write operation
  @return the resulting byte array