Chromium Code Reviews
DescriptionAdd base128 encoding library.
This will be used to safely encode datastore Key string ids, which are
supposedly UTF8 encoded. This base128 implementation only ever uses the lower 7
bits, and so should always roundtrip through UTF8 without any drama.
This is also designed to retain sort-order between sorted and unsorted forms
(that is: the data encoded and unencoded should memcmp sort the same way).
Unfortunately other schemes (such as base64/ascii85) don't preserve this
property.
R=dnj@chromium.org, vadimsh@chromium.org
BUG=669308
Committed: https://github.com/luci/luci-go/commit/dd65e8b8494aedf0eafff0ac6894a0c99e0a62ba
Patch Set 1 #
Total comments: 21
Patch Set 2 : Fix nits #
Messages
Total messages: 13 (5 generated)
|
||||||||||||||||||||||||||||