withReset

inline fun <T : Buffer> T.withReset(): T

Utility function wrapping the Buffer.reset call on older JDKs where it always returns a plain Buffer instead of the correct type