/** * Adds a byte onto the array * * @param b the byte */ public void add(byte b) { checkSize(1); bytes[pos] = b; pos++; }
/** * Adds a byte onto the array * * @param b the byte */ public void add(byte b) { checkSize(1); bytes[pos] = b; pos++; }
/** * Adds an array of bytes onto the array * * @param b the array of bytes */ public void add(byte[] b) { checkSize(b.length); System.arraycopy(b, 0, bytes, pos, b.length); pos += b.length; }
/** * Adds an array of bytes onto the array * * @param b the array of bytes */ public void add(byte[] b) { checkSize(b.length); System.arraycopy(b, 0, bytes, pos, b.length); pos += b.length; }