reset rp->cnt in rio_resetBuffer()