withMark

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

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