Resizes the specified array if no space is left. @param a array to be resized @param p current array position @param l length of new entry @return original or new array
(final byte[] a, final int p, final int l)
| 169 | * @return original or new array |
| 170 | */ |
| 171 | private static byte[] check(final byte[] a, final int p, final int l) { |
| 172 | final int s = a.length; |
| 173 | return p + l < s ? a : Arrays.copyOf(a, s + Math.max(l, s >> 3)); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Compresses and writes an integer value to the specified byte array. |