org.mapdb.volume / ByteBufferMemoryVol

ByteBufferMemoryVol

class ByteBufferMemoryVol : ByteBufferVol

Created by jan on 3/13/16.



Constructors

<init> ByteBufferMemoryVol(useDirectBuffer: Boolean, sliceShift: Int, cleanerHackEnabled: Boolean, initSize: Long)

Properties

FACTORY static val FACTORY: VolumeFactory

factory for DirectByteBuffer storage

FACTORY_WITH_CLEANER_HACK static val FACTORY_WITH_CLEANER_HACK: VolumeFactory

factory for DirectByteBuffer storage

Functions

close fun close(): Unit
ensureAvailable fun ensureAvailable(offset: Long): Unit
getFile fun getFile(): File
getFileLocked fun getFileLocked(): Boolean
isReadOnly fun isReadOnly(): Boolean
length fun length(): Long
sync fun sync(): Unit
toString fun toString(): String
truncate fun truncate(size: Long): Unit

Inherited Functions

clear open fun clear(startOffset: Long, endOffset: Long): Unit
copyTo open fun copyTo(inputOffset: Long, target: Volume, targetOffset: Long, size: Long): Unit
getByte fun getByte(offset: Long): Byte
getData open fun getData(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unit
getDataInput fun getDataInput(offset: Long, size: Int): ByteBuffer
getDataInputOverlap open fun getDataInputOverlap(offset: Long, size: Int): DataInput2
getInt fun getInt(offset: Long): Int
getLong fun getLong(offset: Long): Long
getPackedLong open fun getPackedLong(position: Long): Long
getSixLong open fun getSixLong(pos: Long): Long
getUnsignedByte open fun getUnsignedByte(offset: Long): Int
getUnsignedShort open fun getUnsignedShort(offset: Long): Int
isSliced open fun isSliced(): Boolean
putByte fun putByte(offset: Long, value: Byte): Unit
putData open fun putData(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unit
fun putData(offset: Long, buf: ByteBuffer): Unit
putDataOverlap open fun putDataOverlap(offset: Long, data: ByteArray, pos: Int, len: Int): Unit
putInt fun putInt(offset: Long, value: Int): Unit
putLong fun putLong(offset: Long, value: Long): Unit
putPackedLong open fun putPackedLong(pos: Long, value: Long): Int
putSixLong open fun putSixLong(pos: Long, value: Long): Unit
putUnsignedByte open fun putUnsignedByte(offset: Long, byt: Int): Unit
putUnsignedShort open fun putUnsignedShort(offset: Long, value: Int): Unit
sliceSize open fun sliceSize(): Int