Lines Matching refs:Idx
79 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver() local
80 const Unit &Other = (*Corpus)[Idx]; in Mutate_CustomCrossOver()
110 size_t Idx = Rand(Size); in Mutate_EraseByte() local
112 memmove(Data + Idx, Data + Idx + 1, Size - Idx - 1); in Mutate_EraseByte()
119 size_t Idx = Rand(Size + 1); in Mutate_InsertByte() local
121 memmove(Data + Idx + 1, Data + Idx, Size - Idx); in Mutate_InsertByte()
122 Data[Idx] = RandCh(Rand); in Mutate_InsertByte()
128 size_t Idx = Rand(Size); in Mutate_ChangeByte() local
129 Data[Idx] = RandCh(Rand); in Mutate_ChangeByte()
135 size_t Idx = Rand(Size); in Mutate_ChangeBit() local
136 Data[Idx] = FlipRandomBit(Data[Idx], Rand); in Mutate_ChangeBit()
165 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size + 1); in AddWordFromDictionary() local
166 memmove(Data + Idx + W.size(), Data + Idx, Size - Idx); in AddWordFromDictionary()
167 memcpy(Data + Idx, W.data(), W.size()); in AddWordFromDictionary()
171 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size - W.size()); in AddWordFromDictionary() local
172 memcpy(Data + Idx, W.data(), W.size()); in AddWordFromDictionary()
204 size_t Idx = E + B - i - 1; in Mutate_ChangeASCIIInteger() local
205 assert(Idx >= B && Idx < E); in Mutate_ChangeASCIIInteger()
206 Data[Idx] = (Val % 10) + '0'; in Mutate_ChangeASCIIInteger()
215 size_t Idx = Rand(Corpus->size()); in Mutate_CrossOver() local
216 const Unit &Other = (*Corpus)[Idx]; in Mutate_CrossOver()