Protected
_Protected
_Protected
bufProtected
viewClear all data and reset all positions
Drop all data before current offset and reset positions This is the key method for memory management - removes processed data
Write a variable-length integer (QUIC-style varint) Encoding:
Restore read position to last checkpoint
Save current read position for potential rollback