vmap-rs icon indicating copy to clipboard operation
vmap-rs copied to clipboard

Add Ring::read_and_consume

Open tikste opened this issue 11 months ago • 0 comments

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

tikste avatar Mar 17 '24 21:03 tikste