AsyncBufferedInputStream

class AsyncBufferedInputStream(val base: AsyncInputStream, val bufferSize: Int = 8192) : AsyncInputStream

Constructors

Link copied to clipboard
constructor(base: AsyncInputStream, bufferSize: Int = 8192)

Properties

Link copied to clipboard
Link copied to clipboard
val bufferSize: Int = 8192

Functions

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 AsyncInputStream.copyTo(target: AsyncOutputStream, chunkSize: Int = 8 * 1024 * 1024): Long
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.md5(): Hash
Link copied to clipboard
open suspend override fun read(): Int
open suspend override fun read(buffer: ByteArray, offset: Int, len: Int): 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
suspend fun AsyncBufferedInputStream.readBufferedLine(limit: Int = 4096, charset: Charset = UTF8): String
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 readUntil(end: Byte, including: Boolean = true, limit: Int = 4096): ByteArray
Link copied to clipboard
suspend fun AsyncInputStream.readUntil(endByte: Byte, limit: Int = 4096, temp: ByteArray = ByteArray(1)): ByteArray
Link copied to clipboard
suspend fun require(len: Int = 1)
Link copied to clipboard
suspend fun AsyncInputStream.sha1(): Hash
Link copied to clipboard
suspend fun AsyncInputStream.skip(count: Int)
Link copied to clipboard
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