Thanks Erel, int worked. Its a function in a group of functions that allow cyclic buffering, this function lets me peep at historical buffer content without removing bytes from it and incrementing the outPointer, handy for making decisions as whether to whether to extract a packet (from bluetooth) and deal with it, or leave it until the whole packet has arrived (i'm not using prefix mode). Working beautifully now.