class MemoryDataSource : NativeReference, Closeable
In-Memory DataSource that is intended to be used for testing
data
- data that will be sent from this DataSource
chunkSize
- start call will send one packet for each chunkSize (default to send all data in one packet)
MemoryDataSource(data: ByteArray, chunkSize: Int = data.size)
In-Memory DataSource that is intended to be used for testing |
val thisPointer: Long
Pointer to native jni reference for this object |
fun attach(dataSinkPtr: Long): Unit
Attach a DataSink that will receive data from this source |
|
fun close(): Unit |
|
fun start(): Unit
Start sending the data from buffer to attached DataSink. |