We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acab35 commit 8ba97a7Copy full SHA for 8ba97a7
src/main/java/com/maxmind/db/MultiBuffer.java
@@ -96,10 +96,10 @@ public MultiBuffer(long capacity) {
96
this.buffers = new ByteBuffer[totalChunks];
97
98
for (int i = 0; i < fullChunks; i++) {
99
- buffers[i] = ByteBuffer.allocateDirect(chunkSize);
+ buffers[i] = ByteBuffer.allocate(chunkSize);
100
}
101
if (remainder > 0) {
102
- buffers[totalChunks - 1] = ByteBuffer.allocateDirect(remainder);
+ buffers[totalChunks - 1] = ByteBuffer.allocate(remainder);
103
104
105
0 commit comments