- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for mutateBytes (0.25 sec)
-
src/internal/fuzz/mutator.go
copy(m.scratch, v) } m.mutateBytes(&m.scratch) vals[i] = string(m.scratch) case []byte: if len(v) > maxPerVal { panic(fmt.Sprintf("cannot mutate bytes of length %d", len(v))) } if cap(m.scratch) < maxPerVal { m.scratch = append(make([]byte, 0, maxPerVal), v...) } else { m.scratch = m.scratch[:len(v)] copy(m.scratch, v) } m.mutateBytes(&m.scratch) vals[i] = m.scratch
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0)