private byte[] shortArr2byteArr(short[] shortArr, int shortArrLen){
byte[] byteArr = new byte[shortArrLen * 2];
ByteBuffer.wrap(byteArr).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().put(shortArr);
return byteArr;
}
Java short数组转byte数组
最新推荐文章于 2022-01-10 15:09:02 发布