10-27-2010 01:20 AM
hi,
i want to read a binary file with some offset ..not in bytes... offset in bits..my data is a single bit data stream size of 1GB ,after skipping particular bit offset i want to read the data in byte order..
10-27-2010 02:21 AM
10-27-2010 04:00 AM
hi , Gerd W
i am not able to follow your answer.... here with i attached a file to describe my query more clearly. Actually two channels of 1 bit data stream stored in two different files ,and the file size will be more than 10 GB.
i want to delay the channel B by 3 bits and i want to perform bitwise operation between channel A and shifted version of channel B..till the end of the data..
now i am doing this without applying any delay by choosing a small block by block which corresponds to 1 sec of data .
10-27-2010 04:02 AM
sorry
here is the file..
10-27-2010 04:04 AM - edited 10-27-2010 04:06 AM
Hi Indrajit,
right now you deal with bytes instead of bits... Don't know what you're doing with those typecasts, but probably you want to use a simple "string to U8 array" conversion there. Also your Sum algorithm may be ill because of not correct datatype, depending on block size and data content...
To work with bits you have to
- convert those file contents to real bit arrays
or
-(when trying to stick with byte arrays) use some shift operations to delay by 3 bits...