- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for byteSliceArithmeticUint64 (0.34 sec)
-
src/internal/fuzz/mutators_byteslice_test.go
{ name: "byteSliceArithmeticUint32", mutator: byteSliceArithmeticUint32, input: []byte{1, 2, 3, 4}, expected: []byte{2, 2, 3, 4}, }, { name: "byteSliceArithmeticUint64", mutator: byteSliceArithmeticUint64, input: []byte{1, 2, 3, 4, 5, 6, 7, 8}, expected: []byte{2, 2, 3, 4, 5, 6, 7, 8}, }, { name: "byteSliceOverwriteInterestingUint8",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 4.3K bytes - Viewed (0) -
src/internal/fuzz/mutators_byteslice.go
if m.r.bool() { v = 0 - v } pos := m.rand(len(b) - 3) enc := m.randByteOrder() enc.PutUint32(b[pos:], enc.Uint32(b[pos:])+v) return b } // byteSliceArithmeticUint64 adds/subtracts from a random uint64 in b. func byteSliceArithmeticUint64(m *mutator, b []byte) []byte { if len(b) < 8 { return nil } v := uint64(m.rand(35) + 1) if m.r.bool() { v = 0 - v } pos := m.rand(len(b) - 7)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 7.7K bytes - Viewed (0) -
src/internal/fuzz/mutator.go
byteSliceDuplicateBytes, byteSliceOverwriteBytes, byteSliceBitFlip, byteSliceXORByte, byteSliceSwapByte, byteSliceArithmeticUint8, byteSliceArithmeticUint16, byteSliceArithmeticUint32, byteSliceArithmeticUint64, byteSliceOverwriteInterestingUint8, byteSliceOverwriteInterestingUint16, byteSliceOverwriteInterestingUint32, byteSliceInsertConstantBytes, byteSliceOverwriteConstantBytes, byteSliceShuffleBytes,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0)