Lines Matching refs:CopySize
321 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf() local
322 assert(ToBeg + CopySize <= ToSize); in CopyPartOf()
323 CopySize = std::min(CopySize, FromSize); in CopyPartOf()
324 size_t FromBeg = Rand(FromSize - CopySize + 1); in CopyPartOf()
325 assert(FromBeg + CopySize <= FromSize); in CopyPartOf()
326 memmove(To + ToBeg, From + FromBeg, CopySize); in CopyPartOf()
338 size_t CopySize = Rand(MaxCopySize) + 1; in InsertPartOf() local
339 size_t FromBeg = Rand(FromSize - CopySize + 1); in InsertPartOf()
340 assert(FromBeg + CopySize <= FromSize); in InsertPartOf()
342 assert(ToInsertPos + CopySize <= MaxToSize); in InsertPartOf()
346 memcpy(MutateInPlaceHere.data(), From + FromBeg, CopySize); in InsertPartOf()
347 memmove(To + ToInsertPos + CopySize, To + ToInsertPos, TailSize); in InsertPartOf()
348 memmove(To + ToInsertPos, MutateInPlaceHere.data(), CopySize); in InsertPartOf()
350 memmove(To + ToInsertPos + CopySize, To + ToInsertPos, TailSize); in InsertPartOf()
351 memmove(To + ToInsertPos, From + FromBeg, CopySize); in InsertPartOf()
353 return ToSize + CopySize; in InsertPartOf()