Lines Matching refs:PieceOffs
243 unsigned PieceOffs = 0; in split() local
245 while (Offset >= PieceOffs+Pieces[i].size()) { in split()
246 PieceOffs += Pieces[i].size(); in split()
252 if (PieceOffs == Offset) in split()
257 unsigned IntraPieceOffset = Offset-PieceOffs; in split()
339 unsigned PieceOffs = 0; in erase() local
341 for (; Offset > PieceOffs; ++i) in erase()
342 PieceOffs += getPiece(i).size(); in erase()
343 assert(PieceOffs == Offset && "Split didn't occur before erase!"); in erase()
349 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) in erase()
350 PieceOffs += getPiece(i).size(); in erase()
353 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) { in erase()
354 PieceOffs += getPiece(i).size(); in erase()
369 unsigned CoverBytes = PieceOffs-Offset; in erase()