Skip to content
Snippets Groups Projects
Commit 677b9b17 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

Expose AnyObjectId compareTo(byte[]) and compareTo(int[])


Storage systems can use these implementations to compare a passed
AnyObjectId with a stored representation of an ObjectId in the
canonical network byte order format.  This can be useful to do a
binary search, or just linear scan, over an encoded storage file.

Change-Id: I8c72993c4f4c6e98d599ac2c9867453752f25fd2
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent 864cc3de
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment