On Sat, Oct 17, 2009 at 6:25 PM, Michael <[email protected]> wrote:
>
> int compare(byte[] b1, int s1,
>                            byte[] b2, int s2,
>                            Descriptors.Descriptor type)
>
> I would love a method like this one. It would allow messages to be
> used as keys in without the need for deserialization and object
> creation. Anybody know where to find something like this?

Can't you use Arrays#equals() for that?

http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#equals(byte[],%20byte[])
-- 
/Jesper

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to