So, presumably, numBytes() in FileBitReader returns the number of bytes in the entire file (including the header). So, how will I know where to start my counter (i.e., what position are we at in the file) after the header's been read?
for example: int position = ??; //Isn't 0. for (; position < in.numBytes() * 8; position++) { //Do stuff. )
Also, should it be numBytes() * 8? If I'm reading bit by bit, I would guess this is the case.
Thanks, Giancarlo Dozzi |