Fixed issue related to boundary conditions in rbuf read/write