Package com.indeed.util.mmap
Class NativeBuffer
- java.lang.Object
-
- com.indeed.util.mmap.NativeBuffer
-
- All Implemented Interfaces:
BufferResource,java.io.Closeable,java.lang.AutoCloseable
public final class NativeBuffer extends java.lang.Object implements BufferResource
-
-
Constructor Summary
Constructors Constructor Description NativeBuffer(long length, java.nio.ByteOrder order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DirectMemorymemory()voidmlock(long position, long length)voidmunlock(long position, long length)NativeBufferrealloc(long newSize)
-
-
-
Method Detail
-
mlock
public void mlock(long position, long length)
-
munlock
public void munlock(long position, long length)
-
realloc
public NativeBuffer realloc(long newSize)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
memory
public DirectMemory memory()
- Specified by:
memoryin interfaceBufferResource
-
-