J
Jonathan Halterman
I have a pointer to a buffer of bytes that I receive from a tcp stream that
I would like to place into some kind of stream that can I can then use to
serialize the data into into individual variables. I looked at the
streambuf, istream, and strstream, and can't quite figure out a simple
implementation for what I need.
Given a pointer to a buffer of bytes, and the size of the bytes that I am
concerned with, how can I get this into a stream that I can then use to
serialize the data to individual variables? The data is organized such that
there are two long values (4 bytes each), followed by two integers, then a
20 byte string of characters, etc...
jonathan
I would like to place into some kind of stream that can I can then use to
serialize the data into into individual variables. I looked at the
streambuf, istream, and strstream, and can't quite figure out a simple
implementation for what I need.
Given a pointer to a buffer of bytes, and the size of the bytes that I am
concerned with, how can I get this into a stream that I can then use to
serialize the data to individual variables? The data is organized such that
there are two long values (4 bytes each), followed by two integers, then a
20 byte string of characters, etc...
jonathan