RBPPacket: use pointer arithmetic instead of index of current position in data buffer