Google Protocol Buffers - Fixed size buffer?

Posted by Roey on Stack Overflow See other posts from Stack Overflow or by Roey
Published on 2010-05-12T06:19:03Z Indexed on 2010/05/12 6:24 UTC
Read the original article Hit count: 243

Filed under:
|
|
|

Hi All.

Using Google Protocol Buffers, can I set a maximum size for all messages I encode?

if I know that what I encode is never larger than X bytes, then Google Protobuffs would always produce a buffer of size Y, and if I give it a smaller amount of data, pad it to size Y?

© Stack Overflow or respective owner

Related posts about protocol-buffers

Related posts about protobuf-net