loadDirect

inline fun loadDirect(errorHandler: (Throwable) -> ByteBuffer = { throw it }): ByteBuffer

load the given resource synchronously into a new direct byte buffer. you may then perform any operations on the result.

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

Since

1.1.6

See also