public static byte [ ] intToNetworkByteOrder ( int num , int count ) { byte [ ] buf = new byte [ count ] ; intToNetworkByteOrder ( num , buf , 0 , count ) ; return buf ; }
Encodes an integer into up to 4 bytes in network byte order .