public class ReadersKt
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
pass(kotlinx.coroutines.io.ByteReadChannel $receiver,
java.nio.ByteBuffer buffer,
kotlin.jvm.functions.Function2<? super java.nio.ByteBuffer,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> block,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Read data chunks from ByteReadChannel using buffer
|
static java.lang.Object |
toByteArray(kotlinx.coroutines.io.ByteReadChannel $receiver,
int limit,
kotlin.coroutines.experimental.Continuation<? super byte[]> p)
Convert ByteReadChannel to ByteArray
|
static java.lang.Object |
use(kotlinx.coroutines.io.ByteWriteChannel $receiver,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> block,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Executes block on ByteWriteChannel and close it down correctly whether an exception
|
public static java.lang.Object toByteArray(kotlinx.coroutines.io.ByteReadChannel $receiver,
int limit,
kotlin.coroutines.experimental.Continuation<? super byte[]> p)
Convert ByteReadChannel to ByteArray
public static java.lang.Object pass(kotlinx.coroutines.io.ByteReadChannel $receiver,
java.nio.ByteBuffer buffer,
kotlin.jvm.functions.Function2<? super java.nio.ByteBuffer,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> block,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Read data chunks from ByteReadChannel using buffer
public static java.lang.Object use(kotlinx.coroutines.io.ByteWriteChannel $receiver,
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> block,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Executes block on ByteWriteChannel and close it down correctly whether an exception