Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-10-12 16:30:14


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Baranowski, Daniel
> Sent: Thursday, October 12, 2006 12:38 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [Serialization] Serializing to a void * and
> asize?
>
> Thanks a bunch Nat, you've been a big help. Glad it was a simple
> solution.

[Nat] You're welcome.
 
> // Get the size of the buffer and a pointer to it
> std::string sBuff = sTestBinary1.str();
> size_t iSize = sBuff.size(); // ?? How do I get the size ??

[Nat] std::string::length()

> void * pVoid = (void *)sBuff.c_str(); // ?? Is this the right
pointer
> ??

[Nat] Sure, if you have to pass a void* and a size_t into some function.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net