Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int i = 0;
- while ((i < size) && (offset < len))
- {
- c = cBuffer[offset++];
- *(cOut + nOut++) = (table[(c & 0xF0U) >> 4]); // add 1 byte for sure
- if (table[c & 0x0FU] != 0) // if table is 0 ?! it jump a byte.. ._.
- {
- *(cOut + nOut++) = table[c & 0x0FU];
- }
- i += 2; // increment 2 also if the second byte isn't added..
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement