Lines Matching refs:size_t
28 typedef int (*UserCallback)(const uint8_t *Data, size_t Size);
56 virtual size_t Rand() = 0;
58 size_t operator()(size_t n) { return n ? Rand() % n : 0; } in operator()
67 size_t Rand() override;
79 size_t Mutate_ShuffleBytes(uint8_t *Data, size_t Size, size_t MaxSize);
81 size_t Mutate_EraseByte(uint8_t *Data, size_t Size, size_t MaxSize);
83 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize);
85 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize);
87 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize);
90 size_t Mutate_AddWordFromDictionary(uint8_t *Data, size_t Size,
91 size_t MaxSize);
94 size_t Mutate_ChangeASCIIInteger(uint8_t *Data, size_t Size, size_t MaxSize);
97 size_t Mutate_CrossOver(uint8_t *Data, size_t Size, size_t MaxSize);
101 size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize);
104 size_t CrossOver(const uint8_t *Data1, size_t Size1, const uint8_t *Data2,
105 size_t Size2, uint8_t *Out, size_t MaxOutSize);
107 void AddWordToDictionary(const uint8_t *Word, size_t Size);
117 static inline size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize, in Mutate()
150 virtual int TargetFunction(const uint8_t *Data, size_t Size) = 0;
158 virtual size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize) { in Mutate()
163 virtual size_t CrossOver(const uint8_t *Data1, size_t Size1, in CrossOver()
164 const uint8_t *Data2, size_t Size2, in CrossOver()
165 uint8_t *Out, size_t MaxOutSize) { in CrossOver()