Lines Matching refs:ToSize
300 uint8_t *To, size_t ToSize) { in CopyPartOf() argument
302 size_t ToBeg = Rand(ToSize); in CopyPartOf()
303 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf()
304 assert(ToBeg + CopySize <= ToSize); in CopyPartOf()
309 return ToSize; in CopyPartOf()
315 uint8_t *To, size_t ToSize, in InsertPartOf() argument
317 if (ToSize >= MaxToSize) return 0; in InsertPartOf()
318 size_t AvailableSpace = MaxToSize - ToSize; in InsertPartOf()
323 size_t ToInsertPos = Rand(ToSize + 1); in InsertPartOf()
325 size_t TailSize = ToSize - ToInsertPos; in InsertPartOf()
335 return ToSize + CopySize; in InsertPartOf()