org.mapdb.volume / ByteBufferMemoryVolSingle

ByteBufferMemoryVolSingle

class ByteBufferMemoryVolSingle : ByteBufferVolSingle

Created by jan on 3/13/16.



Constructors

<init> ByteBufferMemoryVolSingle(useDirectBuffer: Boolean, maxSize: Long, cleanerHackEnabled: Boolean)

Functions

close fun close(): 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
ensureAvailable open fun ensureAvailable(offset: 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
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
sliceSize open fun sliceSize(): Int