class ReadOnlyVolume : VolumeCreated by jan on 2/29/16.
| <init> |
ReadOnlyVolume(vol: Volume) |
| UNSAFE_VOL_FACTORY |
static val UNSAFE_VOL_FACTORY: VolumeFactoryIf |
| clear |
fun clear(startOffset: Long, endOffset: Long): Unit |
| close |
fun close(): Unit |
| copyTo |
fun copyTo(inputOffset: Long, target: Volume, targetOffset: Long, size: Long): Unit |
| deleteFile |
fun deleteFile(): Unit |
| ensureAvailable |
fun ensureAvailable(offset: Long): Unit |
| getByte |
fun getByte(offset: Long): Byte |
| getData |
fun getData(offset: Long, bytes: ByteArray, bytesPos: Int, size: Int): Unit |
| getDataInput |
fun getDataInput(offset: Long, size: Int): DataInput2 |
| getDataInputOverlap |
fun getDataInputOverlap(offset: Long, size: Int): DataInput2 |
| getFile |
fun getFile(): File |
| getFileLocked |
fun getFileLocked(): Boolean |
| getInt |
fun getInt(offset: Long): Int |
| getLong |
fun getLong(offset: Long): Long |
| getSixLong |
fun getSixLong(pos: Long): Long |
| getUnsignedByte |
fun getUnsignedByte(offset: Long): Int |
| getUnsignedShort |
fun getUnsignedShort(offset: Long): Int |
| isClosed |
fun isClosed(): Boolean |
| isReadOnly |
fun isReadOnly(): Boolean |
| isSliced |
fun isSliced(): Boolean |
| length |
fun length(): Long |
| putByte |
fun putByte(offset: Long, value: Byte): Unit |
| putData |
fun putData(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unitfun putData(offset: Long, buf: ByteBuffer): Unit |
| putDataOverlap |
fun putDataOverlap(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unit |
| putInt |
fun putInt(offset: Long, value: Int): Unit |
| putLong |
fun putLong(offset: Long, value: Long): Unit |
| putSixLong |
fun putSixLong(pos: Long, value: Long): Unit |
| putUnsignedByte |
fun putUnsignedByte(offset: Long, b: Int): Unit |
| putUnsignedShort |
fun putUnsignedShort(offset: Long, value: Int): Unit |
| sliceSize |
fun sliceSize(): Int |
| sync |
fun sync(): Unit |
| truncate |
fun truncate(size: Long): Unit |
| assertZeroes |
open fun assertZeroes(startOffset: Long, endOffset: Long): UnitCheck that all bytes between given offsets are zero. This might cross 1MB boundaries |
| clearOverlap |
open fun clearOverlap(startOffset: Long, endOffset: Long): Unit |
| copyFrom |
open fun copyFrom(input: InputStream): UnitCopy content from InputStream into this Volume. |
| copyTo |
open fun copyTo(to: Volume): UnitCopy content of this volume to another. Target volume might grow, but is never shrank. Target is also not synced open fun copyTo(output: OutputStream): UnitCopy content of this volume to OutputStream. |
| fileLoad |
open fun fileLoad(): Boolean If underlying storage is memory-mapped-file, this method will try to load and precache all file data into disk cache. Most likely it will call |
| getPackedLong |
open fun getPackedLong(position: Long): LongUnpack long value from the Volume. Highest 4 bits reused to indicate number of bytes read from Volume. One can use |
| hash |
open fun hash(off: Long, len: Long, seed: Long): LongCalculates XXHash64 from this Volume content. |
| putPackedLong |
open fun putPackedLong(pos: Long, value: Long): IntPut packed long at given position. |