Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for decBool (0.13 sec)

  1. src/encoding/gob/decode.go

    	for v.Kind() == reflect.Pointer {
    		if v.IsNil() {
    			v.Set(reflect.New(v.Type().Elem()))
    		}
    		v = v.Elem()
    	}
    	return v
    }
    
    // decBool decodes a uint and stores it as a boolean in value.
    func decBool(i *decInstr, state *decoderState, value reflect.Value) {
    	value.SetBool(state.decodeUint() != 0)
    }
    
    // decInt8 decodes an integer and stores it as an int8 in 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

    // Do not run the machine yet; instead do individual instructions crafted by hand.
    func TestScalarDecInstructions(t *testing.T) {
    	ovfl := errors.New("overflow")
    
    	// bool
    	{
    		var data bool
    		instr := &decInstr{decBool, 6, nil, ovfl}
    		state := newDecodeStateFromData(boolResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != true {
    			t.Errorf("bool a = %v not true", data)
    		}
    	}
    	// int
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/dwarfgen/dwinl.go

    		// caller.
    		synthCount := len(m)
    		for _, v := range sl {
    			vp := varPos{
    				DeclName: v.Name,
    				DeclFile: v.DeclFile,
    				DeclLine: v.DeclLine,
    				DeclCol:  v.DeclCol,
    			}
    			synthesized := strings.HasPrefix(v.Name, "~") || v.Name == "_"
    			if idx, found := m[vp]; found {
    				v.ChildIndex = int32(idx)
    				v.IsInAbstract = !synthesized
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool.go

    			return pinfo, noReadQuorumPools, nil
    		}
    	}
    	if opts.ReplicationRequest && opts.DeleteMarker && defPool.Index >= 0 {
    		// If the request is a delete marker replication request, return a default pool
    		// in cases where the object does not exist.
    		// This is to ensure that the delete marker is replicated to the destination.
    		return defPool, noReadQuorumPools, nil
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  5. src/cmd/internal/dwarf/dwarf.go

    	// so indirect through a closure.
    	PutLocationList func(listSym, startPC Sym)
    	Scope           int32
    	Type            Sym
    	DeclFile        string
    	DeclLine        uint
    	DeclCol         uint
    	InlIndex        int32 // subtract 1 to form real index into InlTree
    	ChildIndex      int32 // child DIE index in abstract function
    	IsInAbstract    bool  // variable exists in abstract function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
Back to top