Fills and returns the given array, assigning 0 to each element of the array. ArrayFill.fill(a, (byte) 0); @param a the array to fill (may be null). @return the given array. @see Arrays#fill(byte[],byte) @see ArrayFill#fill(byte[],byte) @since 3.21.0
(final byte[] a)
| 42 | * @since 3.21.0 |
| 43 | */ |
| 44 | public static byte[] clear(final byte[] a) { |
| 45 | return fill(a, (byte) 0); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Fills and returns the given array, assigning {@code '\0'} to each element of the array. |