| Package | Description |
|---|---|
| net.kuujo.catalyst.buffer |
Provides a low-level
Buffer abstraction backed by on- or off-heap memory, memory mapped
files, or RandomAccessFile. |
| Modifier and Type | Method and Description |
|---|---|
static MappedBytes |
MappedBytes.allocate(File file,
FileChannel.MapMode mode,
long size)
Allocates a mapped buffer.
|
static MappedBytes |
MappedBytes.allocate(File file,
long size)
Allocates a mapped buffer in
FileChannel.MapMode.READ_WRITE mode. |
MappedBytes |
MappedBytes.copy()
Copies the bytes to a new byte array.
|
MappedBytes |
FileBytes.map(long offset,
long size)
Maps a portion of the randomAccessFile into memory in
FileChannel.MapMode.READ_WRITE mode and returns
a MappedBytes instance. |
MappedBytes |
FileBytes.map(long offset,
long size,
FileChannel.MapMode mode)
Maps a portion of the randomAccessFile into memory and returns a
MappedBytes instance. |
Copyright © 2013–2015. All rights reserved.