I am confused with the error that I am having in my block.
I have two files that I use for testing the gnuradio block that I am
developing. The input (type gr_complex) to the block is a gr.file_source
I use 4092 input_items that I store in a buffer to work in the
function. In order to make sure that I was reading the files correctly
storing the input items in the buffer properly I did a file write
using (fopen, fwrite) and write the input read in the block into a
file. Later I compare the input file and the newly written file
them to be the same. Strangely, when I use the first test file I have no
problem but when using the second test file the later half of the data
not the same. Half of the data in the newly written file doesn’t match
data in the input file used.
I am utterly confused. Can someone help me out here?