Lines Matching refs:Idx
80 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver() local
81 const Unit &Other = (*Corpus)[Idx]; in Mutate_CustomCrossOver()
114 size_t Idx = Rand(Size - N + 1); in Mutate_EraseBytes() local
116 memmove(Data + Idx, Data + Idx + N, Size - Idx - N); in Mutate_EraseBytes()
124 size_t Idx = Rand(Size + 1); in Mutate_InsertByte() local
126 memmove(Data + Idx + 1, Data + Idx, Size - Idx); in Mutate_InsertByte()
127 Data[Idx] = RandCh(Rand); in Mutate_InsertByte()
139 size_t Idx = Rand(Size + 1); in Mutate_InsertRepeatedBytes() local
141 memmove(Data + Idx + N, Data + Idx, Size - Idx); in Mutate_InsertRepeatedBytes()
145 Data[Idx + i] = Byte; in Mutate_InsertRepeatedBytes()
152 size_t Idx = Rand(Size); in Mutate_ChangeByte() local
153 Data[Idx] = RandCh(Rand); in Mutate_ChangeByte()
160 size_t Idx = Rand(Size); in Mutate_ChangeBit() local
161 Data[Idx] ^= 1 << Rand(8); in Mutate_ChangeBit()
185 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size + 1); in ApplyDictionaryEntry() local
186 memmove(Data + Idx + W.size(), Data + Idx, Size - Idx); in ApplyDictionaryEntry()
187 memcpy(Data + Idx, W.data(), W.size()); in ApplyDictionaryEntry()
191 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size - W.size()); in ApplyDictionaryEntry() local
192 memcpy(Data + Idx, W.data(), W.size()); in ApplyDictionaryEntry()
353 size_t Idx = E + B - i - 1; in Mutate_ChangeASCIIInteger() local
354 assert(Idx >= B && Idx < E); in Mutate_ChangeASCIIInteger()
355 Data[Idx] = (Val % 10) + '0'; in Mutate_ChangeASCIIInteger()
404 size_t Idx = Rand(Corpus->size()); in Mutate_CrossOver() local
405 const Unit &O = (*Corpus)[Idx]; in Mutate_CrossOver()