Create a max byte array with the specified max byte count @param num_bytes the length of returned byte array @return the created max byte array
(int num_bytes)
| 56 | * @return the created max byte array |
| 57 | */ |
| 58 | public static byte[] createMaxByteArray(int num_bytes) { |
| 59 | byte[] max_byte_arr = new byte[num_bytes]; |
| 60 | Arrays.fill(max_byte_arr, (byte) 0xff); |
| 61 | return max_byte_arr; |
| 62 | } |
| 63 | |
| 64 | // ------------------------------ // |
| 65 | // Byte array conversion utilies. // |