NYCBrit
unread,Jan 31, 2011, 9:49:03 PM1/31/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Would it be possible to support recursive graphs in protobuf-net, as a
implementation-specific custom message extension? For example, if
protobuf-net could automatically insert an "optional int32 uniqueID =
1000" field in to each message, it could store an auto-generated
unique identifier for each object. Then, if you come across a
previously serialized object, you need only read/write the uniqueID
field and leave the other optional fields blank. The protobuf-net
deserializer could output the previously constructed object. The
uniqueIDs would only be valid for a defined scope, eg. one contiguous
wire message.