Lines Matching refs:CopySize
303 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf() local
304 assert(ToBeg + CopySize <= ToSize); in CopyPartOf()
305 CopySize = std::min(CopySize, FromSize); in CopyPartOf()
306 size_t FromBeg = Rand(FromSize - CopySize + 1); in CopyPartOf()
307 assert(FromBeg + CopySize <= FromSize); in CopyPartOf()
308 memmove(To + ToBeg, From + FromBeg, CopySize); in CopyPartOf()
320 size_t CopySize = Rand(MaxCopySize) + 1; in InsertPartOf() local
321 size_t FromBeg = Rand(FromSize - CopySize + 1); in InsertPartOf()
322 assert(FromBeg + CopySize <= FromSize); in InsertPartOf()
324 assert(ToInsertPos + CopySize <= MaxToSize); in InsertPartOf()
328 memcpy(MutateInPlaceHere.data(), From + FromBeg, CopySize); in InsertPartOf()
329 memmove(To + ToInsertPos + CopySize, To + ToInsertPos, TailSize); in InsertPartOf()
330 memmove(To + ToInsertPos, MutateInPlaceHere.data(), CopySize); in InsertPartOf()
332 memmove(To + ToInsertPos + CopySize, To + ToInsertPos, TailSize); in InsertPartOf()
333 memmove(To + ToInsertPos, From + FromBeg, CopySize); in InsertPartOf()
335 return ToSize + CopySize; in InsertPartOf()