FakeAsyncClient

class FakeAsyncClient(val serverToClient: SyncStream = DequeSyncStream(), val clientToServer: SyncStream = DequeSyncStream(), val onConnect: Signal<Pair<String, Int>> = Signal(), val onClose: Signal<Unit> = Signal()) : AsyncClient

Constructors

Link copied to clipboard
constructor(serverToClient: SyncStream = DequeSyncStream(), clientToServer: SyncStream = DequeSyncStream(), onConnect: Signal<Pair<String, Int>> = Signal(), onClose: Signal<Unit> = Signal())

Properties

Link copied to clipboard
open override val address: AsyncAddress
Link copied to clipboard
Link copied to clipboard
open override var connected: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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
open suspend override fun connect(host: String, port: Int)
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
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
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
Link copied to clipboard
open suspend override fun write(buffer: ByteArray, offset: Int, len: Int)
open suspend fun write(byte: Int)
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.write8(v: Int)
Link copied to clipboard
suspend fun AsyncOutputStream.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
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
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)
Link copied to clipboard
suspend fun AsyncOutputStream.writeStringz(str: String, charset: Charset = UTF8)
suspend fun AsyncOutputStream.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)