Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decUint32 (0.21 sec)

  1. src/encoding/gob/decode.go

    	}
    	value.SetUint(v)
    }
    
    // decInt32 decodes an integer and stores it as an int32 in value.
    func decInt32(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeInt()
    	if v < math.MinInt32 || math.MaxInt32 < v {
    		error_(i.ovfl)
    	}
    	value.SetInt(v)
    }
    
    // decUint32 decodes an unsigned integer and stores it as a uint32 in value.
    func decUint32(i *decInstr, state *decoderState, value reflect.Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  2. src/encoding/gob/codec_test.go

    		}
    	}
    
    	// int32
    	{
    		var data int32
    		instr := &decInstr{decInt32, 6, nil, ovfl}
    		state := newDecodeStateFromData(signedResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17 {
    			t.Errorf("int32 a = %v not 17", data)
    		}
    	}
    
    	// uint32
    	{
    		var data uint32
    		instr := &decInstr{decUint32, 6, nil, ovfl}
    		state := newDecodeStateFromData(unsignedResult)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
Back to top