reset buffer pointer location at the beginning of each send and receive