开发者

How can I manipulate and make byte arrays?

开发者 https://www.devze.com 2023-02-23 19:35 出处:网络
I\'m creating packets, and I need to encode bytes into an array for output. I have not been able to find any convenient classe开发者_Python百科s to buffer the bytes in a variable length array, and the

I'm creating packets, and I need to encode bytes into an array for output. I have not been able to find any convenient classe开发者_Python百科s to buffer the bytes in a variable length array, and then output them as an array of bytes.

Any ideas?


Use ByteArrayOutputStream write bytes into it, and then call toBytes() to get the bytes.

0

精彩评论

暂无评论...
验证码 换一张
取 消