loadAsyncDirectNT

fun loadAsyncDirectNT(errorHandler: (Throwable) -> Unit = { throw it }, consumer: (ByteBuffer) -> Unit)

load the given resource asynchronously into a new direct byte buffer, with null termination, calling the consumer with the result on the main thread.

In case of failure, the errorHandler will be called with the exception.

Since

1.1.6

See also