|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2002-11-25 20:22:59
Date: 25 Nov 2002 00:03:08 -0500
From: Jeremy Maitin-Shepard <jbms_at_[hidden]>
>> Hmmm - what I don't understand is how this would be different that calling
>>
>> void basic_oarchive::write_array(void* p, size_t count)
>>
>> Incidently, this would work for any kind of archive - not just the
>> binary ones.
>B>ut then the serialized data becomes platform specific. A platform with
>a different endian-ness or a different double size or a different double
f>ormat could not load the data.
>- Jeremy
if one uses
ar << t
where t is a C array, each item is serialized individually.
I believe the original question was how would "power users"
override the item by item virtual function call just blast
all the data to the output archive. For such a purpose
ar.write_binary(t, sizeof(t))
should do nicely.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk