have parseData return the number of bytes consumed