3 ms·ByteBuffer.allocateDirect is another off-JVM-heap solution that's not marked unsafe.by kodablah 9y agoByteBuffer.allocateDirect is another off-JVM-heap solution that's not marked unsafe.