You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@etch.apache.org by Keith Hankin <kh...@shutterfly.com> on 2009/10/02 01:03:59 UTC

Serializing structs out to memory or disk and dynamic properties

I am building a service that stores objects defined as structs persistently on disk, so I want to be able to use binary serialization to write it out and read it back, sometimes to/from memory other times to/from disk.

In addition, I want to be able to have clients that are deployed with newer versions of structs that have added properties to be able to serialize/deserialize them. Can I do this with the use of 'object' parameter declarations or will it throw out the unrecognized parameters?

In both of the above use cases, it would probably be preferable if there was a way to pass the serialized input stream directly as my output, bypassing the unnecessary step of marshalling and remarshalling the same data over again.

Thanks in advance,

Keith Hankin
Shutterfly.com