From: Kenton Varda <ken...@google.com>
Date: Tue, 29 Sep 2009 12:59:03 -0700
Local: Tues, Sep 29 2009 3:59 pm
Subject: Re: Can serialized messages be used reliably as keys?
On Tue, Sep 29, 2009 at 12:22 PM, alopecoid <alopec...@gmail.com> wrote: Only if: > Hi, > Can serialized messages be used reliably as keys? > In other words, is it guaranteed that... > - Two equal messages will always generate equal byte sequences? 1) The implementation you are using writes fields in canonical order. All 2) There are no unknown fields in the message. Your message may have If possible, I would recommend designing your application such that it only > - Two unequal messages will always generate unequal byte sequences? As Jon said, this clearly has to be true. If two messages could have the same serialization, then how would the parser know which one to produce when parsing? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||