Package-level declarations

Types

Link copied to clipboard
interface BitSet<T>
Link copied to clipboard
data class IntBitSet(buffer: Int) : BitSet<Int>
Link copied to clipboard
data class LongBitSet(buffer: Long) : BitSet<Long>

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Decodes a base64 character sequence to bytes. Decoding is done eagerly.

Link copied to clipboard

Decodes a base64 character sequence to bytes. Decoding is done lazily.

Link copied to clipboard
fun <T> BitSet<T>.extract(range: IntRange): T

Extracts range bits. e.g. 0b00001100.extract(2..3) = 0b11 = 0x03.

Link copied to clipboard
fun flatBitMask(count: Int): Int

Create an Int mask of count length e.g. flatBitMask(3) = 0b00000111`.

Link copied to clipboard
fun flatLongBitMask(count: Int): Long

Create a Long mask of count length e.g. flatLongBitMask(3) = 0b00000111L`.

Link copied to clipboard

Provides basic hex CharSequence to ByteArray conversion. Modified version of kotlinx.serialization's HexConverter: https://github.com/Kotlin/kotlinx.serialization/blob/43d5f7841fc744b072a636b712e194081456b5ba/formats/cbor/commonTest/src/kotlinx/serialization/HexConverter.kt

Link copied to clipboard
fun ByteArray.toHexString(separator: String? = null, prefix: String? = null, lowerCase: Boolean = false): String

Provides basic ByteArray to hex String conversion. Modified version of kotlinx.serialization's HexConverter: https://github.com/Kotlin/kotlinx.serialization/blob/43d5f7841fc744b072a636b712e194081456b5ba/formats/cbor/commonTest/src/kotlinx/serialization/HexConverter.kt