List of utility methods to do Array Split
byte[][] | byteSplit(byte[] inp, int... splitLength) byte Split if (inp == null || splitLength == null) return null; int position = 0; byte spilit_data[][] = new byte[splitLength.length][]; for (int inx = 0; inx < splitLength.length; inx++) { spilit_data[inx] = new byte[splitLength[inx]]; for (int jnx = 0; jnx < splitLength[inx]; jnx++) { try { ... |
byte[][] | split(byte[] input) Spits the input array into separate byte arrays. ByteBuffer buf; ByteBuffer buf2; ArrayList<byte[]> temp = new ArrayList<byte[]>(); byte[][] output; output = new byte[input.length][input.length]; int out_index = 0; int index_cache = 0; for (int i = 0; i < input.length; i++) { ... |