BitBuffer

open class BitBuffer(val buffer: ByteBuffer, var bitPosition: Int = buffer.position() * Byte.SIZE_BITS, val bitEnd: Int = buffer.limit() * Byte.SIZE_BITS - 1)

Inheritors

Constructors

Link copied to clipboard
constructor(buffer: ByteBuffer, bitPosition: Int = buffer.position() * Byte.SIZE_BITS, bitEnd: Int = buffer.limit() * Byte.SIZE_BITS - 1)

Properties

Link copied to clipboard
val bitEnd: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun align(): Int
Link copied to clipboard
fun get(i: Int): Byte
Link copied to clipboard
Link copied to clipboard
fun getInt(i: Int): Int
Link copied to clipboard
fun getLong(i: Int): Long
Link copied to clipboard
fun getShort(i: Int): Short
Link copied to clipboard
fun put(buffer: BitBuffer)
fun put(buffer: ByteBuffer)
fun put(b: Boolean)
fun put(b: Byte, numBits: Int = Byte.SIZE_BITS)
fun put(i: Int, numBits: Int = Int.SIZE_BITS)
fun put(b: Short, numBits: Int = Byte.SIZE_BITS)