qisdk / com.aldebaran.qi.sdk.object.streamablebuffer / StreamableBufferFactory / fromFunction

fromFunction

@JvmStatic fun fromFunction(totalSize: Long, readFunction: (offset: Long, size: Long) -> ByteBuffer): StreamableBuffer

Create a StreamableBuffer from a function.

Parameters

totalSize - the total size of the StreamableBuffer.

readFunction - the function providing a data chunk of the StreamableBuffer.

Since
7