Monday, 15 September 2014

c# - Protobuf-net Serialize/Deserialize to/from byte arrays -



c# - Protobuf-net Serialize/Deserialize to/from byte arrays -

i working in gc sensitive environment, , interested in serializing / deserializing protobuf preallocated byte arrays instead of memory streams. possible protobuf-net library?

you can initialise memorystream pre-allocated buffer, see this overload. go far allocate 1 big buffer , index bits of using this overload.

you can pass stream protobuf usual.

c# protobuf-net

No comments:

Post a Comment