Rei*_*ica 29
byte[] bytes = ...;
Buffer buf = ByteBuffer.wrap(bytes);
Run Code Online (Sandbox Code Playgroud)
还有一个ByteBuffer.wrap(byte[] array, int start, int byteCount),如果你只是想换一个阵列的一部分.
| 归档时间: |
|
| 查看次数: |
13803 次 |
| 最近记录: |