invertedtomato / packing

Library for encoding integers in the minimal number of bits. Includes VLQ and Elias Omega encoding.
MIT License
76 stars 6 forks source link

Fix mistake in readme #1

Closed nxrighthere closed 5 years ago

nxrighthere commented 5 years ago

The integer is 4 bytes in size.

invertedtomato commented 5 years ago

Hey nxrightthere! I'm glad you picked up on this - the example was off. However the underlying datatype is a 64-bit int (https://github.com/invertedtomato/integer-compression/blob/master/Library/Compression/Integers/Codec.cs#L69). The comments were right, though I'd incorrectly used an "int" instead of a "long". I've corrected this now.

nxrighthere commented 5 years ago

Ah, thanks. It makes sense then.