Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int n = 667;
- int* source = (int*)malloc(n);
- //filling source
- unsigned int k = (n + 7) / 8;
- uint8_t* compressed = (uint8_t*)malloc(k);
- for (unsigned int i = 0; i < k; ++k)
- {
- //???
- }
- //??? reading last "non-full" byte
- //do something
- free(compressed);
- free(source);
Advertisement
Add Comment
Please, Sign In to add comment