[serialization] Archives for binary marshalling

For anyone interested in extending Robert Ramey's serialization library with derived archive types, the attached archives may be interesting. Included are an archive template for ordered binary marshalling output (big- or little-endian), and rudimentary specialisations for CDR and XDR formats. These aren't really new archives, since they derive from Robert's basic_binary archive classes, but they do demonstrate to some extent what needs to be done to modify the archive output. Issues I've had in extending the archives: - The difference between overriding 'save', 'save_override', 'vsave' and operator<< is not immediately obvious... - Controlling access to individual save/load overloads still has me stumped - There's something weird with initializing wchar_t's going on... Questions or comments welcome. Matt ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify mail.administrator@jupiters.com.au **********************************************************************

On Apr 14, 2004, at 10:57 PM, mvogt@juptech.com wrote:
For anyone interested in extending Robert Ramey's serialization library with derived archive types, the attached archives may be interesting.
Included are an archive template for ordered binary marshalling output (big- or little-endian), and rudimentary specialisations for CDR and XDR formats.
That's great and will be really useful. You've saved me a lot of work! I'll test this and will see how it needs to be extended. As far as I can see at a first glance, string serialization in XDR is not implemented yet? Matthias

Matthias Troyer <troyer <at> itp.phys.ethz.ch> writes:
That's great and will be really useful. You've saved me a lot of work!
I hope so. Do you have a project you can apply it to? It would be instructive to know what your requirements are..
I'll test this and will see how it needs to be extended. As far as I can see at a first glance, string serialization in XDR is not implemented yet?
Yes, a string is encoded as a byte sequence, prepended by a 32-bit length, and padded out to the next 4-byte boundary. std::wstring is not handled, however. Matt
participants (3)
-
Matthew Vogt
-
Matthias Troyer
-
mvogt@juptech.com