Re: [Boost-users] [Serialization] Serializing to a void * and asize?
12 Oct
2006
12 Oct
'06
8:30 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Baranowski, Daniel Sent: Thursday, October 12, 2006 12:38 PM To: boost-users@lists.boost.org 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 ??
void * pVoid = (void *)sBuff.c_str(); // ?? Is this the right
[Nat] std::string::length() pointer
??
[Nat] Sure, if you have to pass a void* and a size_t into some function.
6609
Age (days ago)
6609
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nat Goodspeed