Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for byteSliceArithmeticUint32 (0.5 sec)

  1. src/internal/fuzz/mutators_byteslice_test.go

    		{
    			name:     "byteSliceArithmeticUint16",
    			mutator:  byteSliceArithmeticUint16,
    			input:    []byte{1, 2, 3, 4},
    			expected: []byte{1, 3, 3, 4},
    		},
    		{
    			name:     "byteSliceArithmeticUint32",
    			mutator:  byteSliceArithmeticUint32,
    			input:    []byte{1, 2, 3, 4},
    			expected: []byte{2, 2, 3, 4},
    		},
    		{
    			name:     "byteSliceArithmeticUint64",
    			mutator:  byteSliceArithmeticUint64,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  2. src/internal/fuzz/mutators_byteslice.go

    	if m.r.bool() {
    		v = 0 - v
    	}
    	pos := m.rand(len(b) - 1)
    	enc := m.randByteOrder()
    	enc.PutUint16(b[pos:], enc.Uint16(b[pos:])+v)
    	return b
    }
    
    // byteSliceArithmeticUint32 adds/subtracts from a random uint32 in b.
    func byteSliceArithmeticUint32(m *mutator, b []byte) []byte {
    	if len(b) < 4 {
    		return nil
    	}
    	v := uint32(m.rand(35) + 1)
    	if m.r.bool() {
    		v = 0 - v
    	}
    	pos := m.rand(len(b) - 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  3. src/internal/fuzz/mutator.go

    	byteSliceInsertRandomBytes,
    	byteSliceDuplicateBytes,
    	byteSliceOverwriteBytes,
    	byteSliceBitFlip,
    	byteSliceXORByte,
    	byteSliceSwapByte,
    	byteSliceArithmeticUint8,
    	byteSliceArithmeticUint16,
    	byteSliceArithmeticUint32,
    	byteSliceArithmeticUint64,
    	byteSliceOverwriteInterestingUint8,
    	byteSliceOverwriteInterestingUint16,
    	byteSliceOverwriteInterestingUint32,
    	byteSliceInsertConstantBytes,
    	byteSliceOverwriteConstantBytes,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top