Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class AsyncBufferedInputStream(val base: AsyncInputStream, val bufferSize: Int = 8192) : AsyncInputStream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class BufferedStreamBase(val base: AsyncStreamBase, val blockSize: Int = 2048, val blocksToRead: Int = 16) : AsyncStreamBase
Link copied to clipboard
class ByteArrayBitReader(val data: ByteArray)
Link copied to clipboard
interface CharReader
Link copied to clipboard
class CharReaderFromSyncStream(val stream: SyncStream, val charset: Charset, val chunkSize: Int = 1024) : CharReader
Link copied to clipboard
class DequeSyncStreamBase(val deque: ByteArrayDeque = ByteArrayDeque()) : SyncStreamBase
Link copied to clipboard
Link copied to clipboard
class FastByteArrayInputStream(val ba: ByteArray, offset: Int = 0, val start: Int = 0, val end: Int = ba.size)
Link copied to clipboard
class FileSyncStreamBase(val file: File, val mode: String = "r") : SyncStreamBase
Link copied to clipboard
class FillSyncStreamBase(val fill: Byte, var length: Long) : SyncStreamBase
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ReadonlySyncStreamBase(var data: ByteArray, val offset: Int = 0, val size: Int = data.size - offset) : SyncStreamBase
Link copied to clipboard
open class SeekNotSupportedException(message: String = "Seeking not supported!") : UnsupportedOperationException
Link copied to clipboard
Link copied to clipboard
class SliceAsyncStreamBase(base: AsyncStreamBase, baseStart: Long, baseEnd: Long, closeParent: Boolean) : AsyncStreamBase
Link copied to clipboard
class SliceSyncStreamBase(base: SyncStreamBase, baseStart: Long, baseEnd: Long) : SyncStreamBase
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

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 AsyncStream.asVfsFile(name: String = "unknown.bin"): VfsFile
Link copied to clipboard
suspend fun asyncStreamWriter(bufferSize: Int = AsyncByteArrayDequeChunked.DEFAULT_MAX_SIZE, name: String? = null, lazy: Boolean = false, process: suspend (out: AsyncOutputStream) -> Unit): AsyncInputStream

Creates a an AsyncInputStream from a process function that writes to a AsyncOutputStream.

Link copied to clipboard
fun AsyncStream.buffered(blockSize: Int = 2048, blocksToRead: Int = 16): AsyncStream
Link copied to clipboard
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
Link copied to clipboard
fun FillSyncStream(fillByte: Int = 0, length: Long = Long.MAX_VALUE): SyncStream
Link copied to clipboard
inline fun AsyncStream.getWrittenRange(callback: () -> Unit): LongRange
Link copied to clipboard
Link copied to clipboard
inline fun <T> AsyncStream.keepPosition(callback: () -> T): T
inline fun <T> SyncStream.keepPosition(callback: () -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun MemorySyncStreamToByteArray(initialCapacity: Int = 4096, callback: SyncStream.() -> Unit): ByteArray
Link copied to clipboard
fun String.openAsync(charset: Charset = UTF8): AsyncStream
Link copied to clipboard
Link copied to clipboard
fun String.openSync(charset: Charset = UTF8): SyncStream
fun File.openSync(mode: String = "r"): SyncStream
Link copied to clipboard
inline suspend fun <T> AsyncInputOpenable.openUse(block: (AsyncInputStream) -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
suspend fun AsyncInputStream.readExact(buffer: ByteArray, offset: Int, len: Int)
fun SyncInputStream.readExact(out: ByteArray, offset: Int, len: Int)
Link copied to clipboard
fun SyncInputStream.readExactTo(buffer: ByteArray, offset: Int = 0, length: Int = buffer.size - offset): 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
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.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
Link copied to clipboard
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
fun SyncInputStream.readString(len: Int, charset: Charset = UTF8): String
Link copied to clipboard
fun SyncStream.readStringVL(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
fun SyncInputStream.readStringz(charset: Charset = UTF8, zero: Byte = 0): String
fun SyncInputStream.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
Link copied to clipboard
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
Link copied to clipboard
suspend fun AsyncInputStream.skip(count: Int)
Link copied to clipboard
fun AsyncStream.skipToAlign(alignment: Int)
fun SyncStream.skipToAlign(alignment: Int)
fun AsyncStream.skipToAlign(alignment: Int, offset: Int)
Link copied to clipboard
suspend fun AsyncStream.slice(range: IntRange, closeParent: Boolean = false): AsyncStream
suspend fun AsyncStream.slice(range: LongRange, closeParent: Boolean = false): AsyncStream
Link copied to clipboard
suspend fun AsyncStream.sliceHere(closeParent: Boolean = false): AsyncStream
Link copied to clipboard
suspend fun AsyncStream.sliceStart(start: Long = 0, closeParent: Boolean = false): AsyncStream
Link copied to clipboard
suspend fun AsyncStream.sliceWithBounds(start: Long, end: Long, closeParent: Boolean = false): AsyncStream
Link copied to clipboard
fun SyncStream.sliceWithSize(position: Int, length: Int): SyncStream
fun SyncStream.sliceWithSize(position: Long, length: Long): SyncStream
suspend fun AsyncStream.sliceWithSize(start: Int, length: Int, closeParent: Boolean = false): AsyncStream
suspend fun AsyncStream.sliceWithSize(start: Long, length: Long, closeParent: Boolean = false): AsyncStream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun SyncStream.toCharReader(charset: Charset, chunkSize: Int = 1024): CharReader
fun ByteArray.toCharReader(charset: Charset, chunkSize: Int = 1024): CharReader
Link copied to clipboard
Link copied to clipboard
fun <Error class: unknown class>.toSyncInputStream(): SyncInputStream
Link copied to clipboard
fun <Error class: unknown class>.toSyncOutputStream(): SyncOutputStream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.writeBytes(data: ByteArray, position: Int, length: Int)
fun SyncOutputStream.writeBytes(data: ByteArray, position: Int, length: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.writeFile(source: VfsFile): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.writeString(string: String, charset: Charset = UTF8)
fun SyncOutputStream.writeString(string: String, charset: Charset = UTF8)
Link copied to clipboard
suspend fun AsyncStream.writeStringVL(str: String, charset: Charset = UTF8): AsyncStream
fun SyncOutputStream.writeStringVL(str: String, charset: Charset = UTF8)
Link copied to clipboard
suspend fun AsyncOutputStream.writeStringz(str: String, charset: Charset = UTF8)
fun SyncOutputStream.writeStringz(str: String, charset: Charset = UTF8)
suspend fun AsyncOutputStream.writeStringz(str: String, len: Int, charset: Charset = UTF8)
fun SyncOutputStream.writeStringz(str: String, len: Int, charset: Charset = UTF8)
Link copied to clipboard
inline suspend fun AsyncOutputStream.writeSync(hintSize: Int = 4096, callback: SyncStream.() -> Unit)
Link copied to clipboard
suspend fun AsyncOutputStream.writeTempBytes(size: Int, block: ByteArray.() -> Unit)
Link copied to clipboard
suspend fun AsyncStream.writeToAlign(alignment: Int, value: Int = 0)
fun SyncStream.writeToAlign(alignment: Int, value: Int = 0)
Link copied to clipboard