Lines Matching refs:ToSize
318 uint8_t *To, size_t ToSize) { in CopyPartOf() argument
320 size_t ToBeg = Rand(ToSize); in CopyPartOf()
321 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf()
322 assert(ToBeg + CopySize <= ToSize); in CopyPartOf()
327 return ToSize; in CopyPartOf()
333 uint8_t *To, size_t ToSize, in InsertPartOf() argument
335 if (ToSize >= MaxToSize) return 0; in InsertPartOf()
336 size_t AvailableSpace = MaxToSize - ToSize; in InsertPartOf()
341 size_t ToInsertPos = Rand(ToSize + 1); in InsertPartOf()
343 size_t TailSize = ToSize - ToInsertPos; in InsertPartOf()
353 return ToSize + CopySize; in InsertPartOf()