operating with binary



Hi I have a unsigned char array, but I need to compress it in the bit
level.
for instance the array is 0x91,0x92,0x93....
I need to change it into a bit stream like 10010001 10010010 10010011
....
and operate this stream bit by bit and transform it into another bit
stream,
and convert that bit stream into an unsigned char array.
How can I do it?
Thanks a lot!

.



Relevant Pages

  • Re: operating with binary
    ... and say GETBIT(n,arr) to get/set n'th bit of arr. ... and operate this stream bit by bit and transform it into another bit ... and convert that bit stream into an unsigned char array. ...
    (comp.lang.c)
  • Re: operating with binary
    ... and say GETBIT(n,arr) to get/set n'th bit of arr. ... and operate this stream bit by bit and transform it into another bit ... and convert that bit stream into an unsigned char array. ...
    (comp.lang.c)
  • Re: operating with binary
    ... and operate this stream bit by bit and transform it into another bit ... and convert that bit stream into an unsigned char array. ... int const assert_dummy = ...
    (comp.lang.c)