BitBuf

class BitBuf(buf: ByteBuf) : AutoCloseable

Constructors

Link copied to clipboard
constructor(buf: ByteBuf)

Functions

Link copied to clipboard
fun capacity(): Long
fun capacity(len: Long): BitBuf
Link copied to clipboard
fun clear(): BitBuf
Link copied to clipboard
open override fun close()
Link copied to clipboard
Link copied to clipboard
fun getBit(index: Long): Int
Link copied to clipboard
fun getBits(index: Long, len: Int): Int
Link copied to clipboard
fun getBoolean(index: Long): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun readBit(): Int
Link copied to clipboard
fun readBits(len: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setBit(index: Long, value: Int): BitBuf
Link copied to clipboard
fun setBits(index: Long, len: Int, value: Int): BitBuf
Link copied to clipboard
fun setBoolean(index: Long, value: Boolean): BitBuf
Link copied to clipboard
fun skipBits(len: Int): BitBuf
Link copied to clipboard
Link copied to clipboard
fun writeBit(value: Int): BitBuf
Link copied to clipboard
fun writeBits(len: Int, value: Int): BitBuf
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun writeZero(len: Int): BitBuf