void Advance(int count, int segmentCount)
{
if (count > segmentCount)
{
throw new ArgumentOutOfRangeException("count");
}
this.position += count;
this.readOffset += count;
if (this.readOffset == segmentCount)
{
++this.readArray;
this.readOffset = 0;
}
}