Compresses and stores an integer value at the beginning of the byte array. @param array array @param value value to be stored @return length
(final byte[] array, final int value)
| 97 | * @return length |
| 98 | */ |
| 99 | public static int set(final byte[] array, final int value) { |
| 100 | final int l = length(value); |
| 101 | set(array, value, 0, l); |
| 102 | return l; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Returns the length value of the specified array, stored in the first four bytes. |