File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
exercises/variable-length-quantity Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Implement variable length quantity encoding and decoding.
5
5
The goal of this exercise is to implement [ VLQ] ( https://en.wikipedia.org/wiki/Variable-length_quantity ) encoding/decoding.
6
6
7
7
In short, the goal of this encoding is to encode integer values in a way that would save bytes.
8
- Only the first 7 bits of each byte is significant (right-justified; sort of like an ASCII byte).
8
+ Only the first 7 bits of each byte are significant (right-justified; sort of like an ASCII byte).
9
9
So, if you have a 32-bit value, you have to unpack it into a series of 7-bit bytes.
10
10
Of course, you will have a variable number of bytes depending upon your integer.
11
11
To indicate which is the last byte of the series, you leave bit #7 clear.
You can’t perform that action at this time.
0 commit comments