Android Array Add arraybyteappend(byte[] array, byte[] append, int size)

Here you can find the source of arraybyteappend(byte[] array, byte[] append, int size)

Description

arraybyteappend

Declaration

public static byte[] arraybyteappend(byte[] array, byte[] append,
            int size) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] arraybyteappend(byte[] array, byte[] append) {
        return arraybyteappend(array, append, append.length);
    }/*from  w w  w  . j a v a 2 s .  c o m*/

    public static byte[] arraybyteappend(byte[] array, byte[] append,
            int size) {
        array = arraybyteexpend(array, size);
        System.arraycopy(append, 0, array, array.length - size, size);
        return array;
    }

    public static byte[] arraybyteexpend(byte[] array, int increment) {
        System.arraycopy(array, 0, array = new byte[array.length
                + increment], 0, array.length - increment);
        return array;
    }
}

Related

  1. appendElement(Class kind, T[] array, T element)
  2. appendInt(int[] cur, int val)
  3. arrayappend(T[] array, T[] append)
  4. arrayappend(T[] array, T[] append, int size)
  5. arraybyteappend(byte[] array, byte[] append)
  6. arrayintappend(int[] array, int[] append)
  7. arrayintappend(int[] array, int[] append, int size)
  8. append(byte[] data, byte[] adata)