reset method
- int offset = 0,
Resets the write position to offset so the encoder + its buffer can be
reused for the next message without reallocating (hot-path friendly).
Implementation
void reset({int offset = 0}) {
_pos = offset;
_flushStart = offset;
_depth = 0;
_nPendingSeq = 0;
}