The input is a byte stream. The required output is a list or array of integers decoded from it.
The highest two bits in first byte of each integer value in the input stream decide how long the value is:
then the output is the numeric value of the other 7-bits in that byte.
01010101 == 85
The output is the numeric value of lowest 14-bits of the first and second bytes treated as a big-endian short.
10101010_10101010 == 10922
Then the output is the numeric value of the lowest 22-bits of the first three bytes of input (big-endian).
11001100_11001100_11001100 == 838860
Thoughts?
In reply to [NOT] How would you decode this? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |