Quantcast
Channel: Examples Java Code Geeks » ByteBuffer
Viewing all articles
Browse latest Browse all 7

Create direct and non-direct ByteBuffer

$
0
0
In this example we are going to demonstrate several methods of creating a direct (memory-mapped) and non-direct ByteBuffer in Java. Given a direct byte buffer, the Java virtual machine will make a best effort to perform native I/O operations directly upon it. That is, it will attempt to avoid copying the buffer’s content to (or [...]

Viewing all articles
Browse latest Browse all 7

Trending Articles