clear

common
fun clear()

Discards all bytes in this buffer. Calling this method when you're done with a buffer will return its segments to the pool.

fun clear()