use*_*474 9 java android buffer bytearray
我在Android工作.我需要将byte []转换为Buffer类型.在Android中,我看到了一种我需要在特定功能中使用的缓冲类型.但是,我的数据源是byte []类型.
Rei*_*ica 29
看看ByteBuffer.wrap:
byte[] bytes = ...; Buffer buf = ByteBuffer.wrap(bytes);
还有一个ByteBuffer.wrap(byte[] array, int start, int byteCount),如果你只是想换一个阵列的一部分.
ByteBuffer.wrap(byte[] array, int start, int byteCount)
归档时间:
14 年,9 月 前
查看次数:
13803 次
最近记录: