Quantcast
Viewing all articles
Browse latest Browse all 7

Use ByteBuffer to store Strings

This is an example of how to store Strings using a ByteBuffer in Java. In order to use a ByteBuffer to store Strings in Java we have to : Allocate a new ByteBuffer and set its size to a number large enough in order to avoid buffer to overflow when putting bytes to it Use [...]

Viewing all articles
Browse latest Browse all 7

Trending Articles