#include <Fuzz.h>
|
| Fuzz (const uint8_t *data, size_t size) |
|
| Fuzz ()=delete |
|
| Fuzz (Fuzz &)=delete |
|
Fuzz & | operator= (Fuzz &)=delete |
|
size_t | size () const |
|
bool | exhausted () const |
|
void | deplete () |
|
size_t | remainingSize () const |
|
const uint8_t * | remainingData () const |
|
template<typename T > |
void | next (T *t) |
|
template<typename Arg , typename... Args> |
void | next (Arg *first, Args... rest) |
|
template<typename T , typename Min , typename Max > |
void | nextRange (T *, Min, Max) |
|
template<typename T > |
void | nextEnum (T *ptr, T max) |
|
template<typename T > |
void | nextN (T *ptr, int n) |
|
void | signalBug () |
|
void | next (bool *b) |
|
void | next (SkRegion *region) |
|
bool | nextBool () |
|
void | nextRange (float *f, float min, float max) |
|
Definition at line 24 of file Fuzz.h.
◆ Fuzz() [1/3]
Fuzz::Fuzz |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlineexplicit |
Definition at line 26 of file Fuzz.h.
26: fData(
data), fSize(
size), fNextByte(0) {}
std::shared_ptr< const fml::Mapping > data
◆ Fuzz() [2/3]
◆ Fuzz() [3/3]
◆ deplete()
Definition at line 43 of file Fuzz.h.
43 {
44 fNextByte = fSize;
45 }
◆ exhausted()
bool Fuzz::exhausted |
( |
| ) |
const |
|
inline |
Definition at line 39 of file Fuzz.h.
39 {
40 return fSize == fNextByte;
41 }
◆ next() [1/4]
template<typename Arg , typename... Args>
void Fuzz::next |
( |
Arg * |
first, |
|
|
Args... |
rest |
|
) |
| |
|
inline |
◆ next() [2/4]
void Fuzz::next |
( |
bool * |
b | ) |
|
◆ next() [3/4]
Definition at line 30 of file Fuzz.cpp.
30 {
31
33}
void FuzzNiceRegion(Fuzz *fuzz, SkRegion *region, int maxN)
ClipOpAndAA opAA SkRegion region
◆ next() [4/4]
Definition at line 64 of file Fuzz.h.
64{ this->nextBytes(t,
sizeof(
T)); }
◆ nextBool()
◆ nextEnum()
void Fuzz::nextEnum |
( |
T * |
ptr, |
|
|
T |
max |
|
) |
| |
|
inline |
Definition at line 131 of file Fuzz.h.
131 {
132
133
134
138 if (v < (
U)0) { *
value = (
T)0;
return;}
141}
static float max(float r, float g, float b)
◆ nextN()
void Fuzz::nextN |
( |
T * |
ptr, |
|
|
int |
n |
|
) |
| |
|
inline |
Definition at line 144 of file Fuzz.h.
144 {
145 for (
int i = 0;
i < n;
i++) {
147 }
148}
◆ nextRange() [1/2]
void Fuzz::nextRange |
( |
float * |
f, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
Definition at line 35 of file Fuzz.cpp.
35 {
37 if (!std::isnormal(*
f) && *
f != 0.0f) {
38
40 }
42}
static float min(float r, float g, float b)
SIN Vec< N, float > abs(const Vec< N, float > &x)
◆ nextRange() [2/2]
template<typename
T , typename Min , typename Max >
void Fuzz::nextRange |
( |
T * |
value, |
|
|
Min |
min, |
|
|
Max |
max |
|
) |
| |
|
inline |
Definition at line 119 of file Fuzz.h.
119 {
120
122 Raw raw;
124
125 if (raw < (Raw)
min) { raw = (Raw)
min; }
126 if (raw > (Raw)
max) { raw = (Raw)
max; }
128}
◆ operator=()
◆ remainingData()
const uint8_t * Fuzz::remainingData |
( |
| ) |
const |
|
inline |
Definition at line 51 of file Fuzz.h.
51 {
52 return fData + fNextByte;
53 }
◆ remainingSize()
size_t Fuzz::remainingSize |
( |
| ) |
const |
|
inline |
Definition at line 47 of file Fuzz.h.
47 {
48 return fSize - fNextByte;
49 }
◆ signalBug()
Definition at line 82 of file Fuzz.h.
82 {
83
85 raise(SIGSEGV);
86 }
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
◆ size()
size_t Fuzz::size |
( |
| ) |
const |
|
inline |
Definition at line 34 of file Fuzz.h.
34 {
35 return fSize;
36 }
◆ fuzz__MakeEncoderCorpus
void fuzz__MakeEncoderCorpus |
( |
Fuzz * |
| ) |
|
|
friend |
The documentation for this class was generated from the following files: