![将byte []附加到另一个byte []的末尾,第1张 将byte []附加到另一个byte []的末尾,第1张](/aiimages/%E5%B0%86byte+%5B%5D%E9%99%84%E5%8A%A0%E5%88%B0%E5%8F%A6%E4%B8%80%E4%B8%AAbyte+%5B%5D%E7%9A%84%E6%9C%AB%E5%B0%BE.png)
使用
System.arraycopy(),应类似于以下内容:
// create a destination array that is the size of the two arraysbyte[] destination = new byte[ciphertext.length + mac.length];// copy ciphertext into start of destination (from pos 0, copy ciphertext.length bytes)System.arraycopy(ciphertext, 0, destination, 0, ciphertext.length);// copy mac into end of destination (from pos ciphertext.length, copy mac.length bytes)System.arraycopy(mac, 0, destination, ciphertext.length, mac.length);
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)