国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - Related questions about ByteBuffer
怪我咯
怪我咯 2017-05-16 13:29:23
0
2
745

How to convert a string into ByteBuffer in Java and store it in ByteBuffer in binary form, because it needs to be sent to C++
Please give me a detailed Java method, I don’t know much about ByteBuffer, thank you !

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(2)
滿天的星座

You can first convert the string into a byte array byte[], and then use the put method of ByteBuffer to write it into the buffer.

僅有的幸福
ByteBuffer.wrap(yourString.getBytes(Charset));
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template