BitReader

open class BitReader(val s: AsyncInputStream, val bigChunkSize: Int = BIG_CHUNK_SIZE, val readWithSize: Int = READ_WHEN_LESS_THAN) : AsyncInputStreamWithLength

Constructors

Link copied to clipboard
constructor(s: AsyncInputStream, bigChunkSize: Int = BIG_CHUNK_SIZE, readWithSize: Int = READ_WHEN_LESS_THAN)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun abytes(count: Int, out: ByteArray = ByteArray(count)): ByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
suspend fun AsyncInputStream.compressed(method: CompressionMethod, context: CompressionContext = CompressionContext(), bufferSize: Int = AsyncByteArrayDequeChunked.DEFAULT_MAX_SIZE): AsyncInputStream
Link copied to clipboard
inline suspend fun AsyncInputStream.consume(autoclose: Boolean = true, temp: ByteArray = ByteArray(0x10000), block: (data: ByteArray, offset: Int, size: Int) -> Unit)
Link copied to clipboard
suspend fun copyTo(o: AsyncOutputStream)
Link copied to clipboard
suspend fun AsyncInputStream.copyTo(target: AsyncOutputStream, chunkSize: Int = 8 * 1024 * 1024): Long
Link copied to clipboard
inline fun discardBits(): BitReader
Link copied to clipboard
fun ensureBits(bitcount: Int)
Link copied to clipboard
Link copied to clipboard
open suspend override fun getLength(): Long
Link copied to clipboard
open suspend override fun getPosition(): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun hasLength(): Boolean
Link copied to clipboard
fun internalPeekBytes(out: ByteArray, offset: Int = 0, size: Int = out.size - offset): ByteArray
Link copied to clipboard
suspend fun AsyncInputStream.md5(): Hash
Link copied to clipboard
fun peekBits(bitcount: Int): Int
Link copied to clipboard
inline suspend fun prepareBigChunkIfRequired()
Link copied to clipboard
suspend fun prepareBytesUpTo(expectedBytes: Int)
Link copied to clipboard
open suspend override fun read(buffer: ByteArray, offset: Int, len: Int): Int
open suspend fun read(): Int
Link copied to clipboard
suspend fun AsyncInputStream.read(data: ByteArray): Int
suspend fun AsyncInputStream.read(data: UByteArray): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readBitmap(props: BaseImageDecodingProps = ImageDecodingProps("file.bin")): Bitmap
Link copied to clipboard
suspend fun AsyncInputStream.readBitmapListNoNative(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): List<Bitmap>
Link copied to clipboard
fun readBits(bitcount: Int): Int
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readBytesUpTo(out: ByteArray, offset: Int, len: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readCharArray(count: Int, endian: Endian): CharArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readDoubleArray(count: Int, endian: Endian): DoubleArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readExact(buffer: ByteArray, offset: Int, len: Int)
Link copied to clipboard
suspend fun AsyncInputStream.readF32(endian: Endian): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readF64(endian: Endian): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readFloatArray(count: Int, endian: Endian): FloatArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readImageData(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): ImageData
Link copied to clipboard
suspend fun AsyncInputStream.readIntArray(count: Int, endian: Endian): IntArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readLine(eol: Char = '\n', charset: Charset = UTF8, initialCapacity: Int = 4096): String
Link copied to clipboard
suspend fun AsyncInputStream.readLongArray(count: Int, endian: Endian): LongArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readNativeImage(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): NativeImage
Link copied to clipboard
suspend fun AsyncInputStream.readS16(endian: Endian): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readS24(endian: Endian): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readS32(endian: Endian): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readS64(endian: Endian): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readS8(): Int
Link copied to clipboard
suspend fun AsyncInputStream.readShortArray(count: Int, endian: Endian): ShortArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readString(len: Int, charset: Charset = UTF8): String
Link copied to clipboard
suspend fun AsyncInputStream.readStringz(charset: Charset = UTF8): String
suspend fun AsyncInputStream.readStringz(len: Int, charset: Charset = UTF8): String
Link copied to clipboard
suspend fun AsyncInputStream.readU16(endian: Endian): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readU24(endian: Endian): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readU32(endian: Endian): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readU8(): Int
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readUntil(endByte: Byte, limit: Int = 4096, temp: ByteArray = ByteArray(1)): ByteArray
Link copied to clipboard
fun returnToBuffer(data: ByteArray, offset: Int, size: Int)
Link copied to clipboard
fun sbytes(count: Int): ByteArray
fun sbytes(count: Int, out: ByteArray): ByteArray
Link copied to clipboard
fun sbytes_noalign(count: Int, out: ByteArray)
Link copied to clipboard
suspend fun AsyncInputStream.sha1(): Hash
Link copied to clipboard
suspend fun AsyncInputStream.skip(count: Int)
Link copied to clipboard
fun skipBits(bitcount: Int)
Link copied to clipboard
Link copied to clipboard
suspend fun strz(): String
Link copied to clipboard
fun su16LE(): Int
Link copied to clipboard
fun su32BE(): Int
Link copied to clipboard
fun su32LE(): Int
Link copied to clipboard
fun su8(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun AsyncInputStream.uncompressed(method: CompressionMethod, bufferSize: Int = AsyncByteArrayDequeChunked.DEFAULT_MAX_SIZE): AsyncInputStream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard