vmap-rs
vmap-rs copied to clipboard
Add Ring::read_and_consume
Hi,
I need to get a reference of a portion of the underlying data of a Ring
and consume it at the same time for seamless support of zero-copy parsing.
It could be implemented in trait SeqRead
instead. In this case one should call self.consume(len)
in line 96.
Regards, Till