org.mapdb / DataInput2 / ByteBuffer

ByteBuffer

class ByteBuffer : DataInput2

Wraps java.nio.ByteBuffer and provides DataInput

Author
Jan Kotek



Constructors

<init> ByteBuffer(buf: ByteBuffer, pos: Int)

Properties

buf val buf: ByteBuffer
pos var pos: Int

Functions

close fun close(): Unit
getPos fun getPos(): Int
internalByteArray fun internalByteArray(): ByteArray
internalByteBuffer fun internalByteBuffer(): ByteBuffer
readBoolean fun readBoolean(): Boolean
readByte fun readByte(): Byte
readChar fun readChar(): Char
readFully fun readFully(b: ByteArray, off: Int, len: Int): Unit
readInt fun readInt(): Int
readLong fun readLong(): Long
readShort fun readShort(): Short
readUnsignedByte fun readUnsignedByte(): Int
setPos fun setPos(pos: Int): Unit
skipBytes fun skipBytes(n: Int): Int
unpackInt fun unpackInt(): Int
unpackIntArray fun unpackIntArray(array: IntArray, start: Int, end: Int): Unit
unpackLong fun unpackLong(): Long
unpackLongArray fun unpackLongArray(array: LongArray, start: Int, end: Int): Unit
unpackLongArrayDeltaCompression fun unpackLongArrayDeltaCompression(size: Int): LongArray
unpackLongSkip fun unpackLongSkip(count: Int): Unit

Inherited Functions

readDouble open fun readDouble(): Double
readFloat open fun readFloat(): Float
readFully open fun readFully(b: ByteArray): Unit
readLine open fun readLine(): String
readUTF open fun readUTF(): String
readUnsignedShort open fun readUnsignedShort(): Int