reset

fun reset()

This method resets this object to a clean (zero-size) state and publishes any currently allocated buffers for reuse to the reuse strategy provided in the constructor.

Sharing byte buffers for reads and writes is dangerous and will very likely lead to hard-to-debug issues, use with great care.