dropbox / rust-brotli

Brotli compressor and decompressor written in rust that optionally avoids the stdlib
https://dropbox.tech/infrastructure/-broccoli--syncing-faster-by-syncing-less
BSD 3-Clause "New" or "Revised" License
812 stars 83 forks source link

Make hex numbers more readable #170

Closed nyurik closed 5 months ago

nyurik commented 6 months ago

When a hex number is used with bit operations, it tends to be less readable as it gets longer. Hex numbers should have each 4 digits separated by a _, and separate from the type - so that we can easily see if the number group has 3 or 4 digits.

In some cases I also removed the type qualifier - as it is auto-detected and not needed.