Questions tagged [mappedbytebuffer]

A direct byte buffer whose content is a memory-mapped region of a file.

A direct byte buffer whose content is a memory-mapped region of a file.

Part of java.nio package from version 1.4

Docs: https://docs.oracle.com/javase/7/docs/api/java/nio/MappedByteBuffer.html

61 questions
-1
votes
1 answer

MappedbyteBuffer.get() increments position by too much

The relevant part of my file is this: 82 0a 96 c9 82 0a 96 d3 00 66 13 08 I open the file in a mappedbytebuffer and set the position to the beginning. Then I do this: MappedByteBuffer buffer = channel.map(FileChannel.MapMode.READ_ONLY, 0,…
banzai
  • 55
  • 1
  • 8
1 2 3 4
5