Boost logo

Boost :

Subject: Re: [boost] Interest in a simple buffer abstraction?
From: Cory Nelson (phrosty_at_[hidden])
Date: 2011-01-27 10:24:46


On Thu, Jan 27, 2011 at 6:49 AM, Vicente Botet <vicente.botet_at_[hidden]> wrote:
> I'm working on a frame concept, which is something like a bidirectional
> buffer. It allows to prepend and append binary data, and obtain/remove the
> header and the trailer.
>
> In addition we can split a frame in fragments and join fragments to make a
> frame.
>
> All these features are needed when working with protocol stacks.
>
> Best,
> Vicente
>

You'll have a winner if you expand that to allow bidirectional
iteration of both bytes and fragments (and then a fragment is just a
raw array giving random-access iteration within them). VERY useful
for high-performance incremental parsing, I would definitely give my
+1 for boost inclusion.

-- 
Cory Nelson
http://int64.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk