public class MMapBuffer
extends xerial.larray.buffer.LBufferAPI
| Constructor and Description |
|---|
MMapBuffer(java.io.File f,
long offset,
long size,
MMapMode mode)
Open an memory mapped file.
|
MMapBuffer(java.io.File f,
MMapMode mode)
Open an memory mapped file.
|
| Modifier and Type | Method and Description |
|---|---|
long |
address() |
void |
close()
Close the memory mapped file.
|
void |
flush()
Forces any changes made to this buffer to be written to the file
|
protected long |
offset() |
apply, apply, clear, copyTo, copyTo, fill, getByte, getByte, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, loadFrom, putByte, putByte, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, readFrom, readFrom, readFrom, release, size, slice, toArray, toDirectByteBuffer, toDirectByteBuffers, toDirectByteBuffers, update, update, view, writeTo, writeTo, writeTo, writeTopublic MMapBuffer(java.io.File f,
MMapMode mode)
throws java.io.IOException
f - mode - java.io.IOExceptionpublic MMapBuffer(java.io.File f,
long offset,
long size,
MMapMode mode)
throws java.io.IOException
f - offset - size - mode - java.io.IOExceptionpublic long address()
address in class xerial.larray.buffer.LBufferAPIpublic void flush()
public void close()
throws java.io.IOException
java.io.IOExceptionprotected long offset()
offset in class xerial.larray.buffer.LBufferAPI