@JvmStatic fun fromFunction(totalSize: Long, readFunction: (offset: Long, size: Long) -> ByteBuffer): StreamableBuffer
Create a StreamableBuffer from a function.
totalSize - the total size of the StreamableBuffer.
readFunction - the function providing a data chunk of the StreamableBuffer.
Since
7