Creates a new byte array containing a little-endian 4-byte integer. @param n An integer. @return A new byte array containing the given value.
(final int n)
| 441 | * @return A new byte array containing the given value. |
| 442 | */ |
| 443 | public static byte[] fromInt(final int n) { |
| 444 | final byte[] b = new byte[4]; |
| 445 | setInt(b, n); |
| 446 | return b; |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Creates a new byte array containing a little-endian 4-byte unsigned integer. |