At 12:21 PM 5/18/99 -0700, Steve Mann wrote:
>>and have the packing/unpacking taken care of? Is this even possible? It seems
>>that re-inventing the wheel for ever application is silly if there's a generic
>>way to do it.
>
>It's definitely possible, but the pack/unpack routines may be dependent on
>your data and how you want to manage it (size, speed, algorithm tradeoffs
>and the like). I've never seen anyone offer up any generic routines. It's
>not that tough to do however.

Perhaps it can just be modeled after "scatter-gather" read/write routines
present in most operating systems (readv, writev.) They're really convenient
when working with networks (the network packets typically consist of several
different "fields".) It's easy to whip up the basic code (I can do it if
someone wants it.)

Regards,

-Ade

ps. This is where a good c++ infrastructure library would be great. =-)

Reply via email to