Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SliceValue (0.14 sec)

  1. src/runtime/runtime-gdb.py

        G_SCAN: 'scan',
        G_SCANRUNNABLE: 'runnable+s',
        G_SCANRUNNING: 'running+s',
        G_SCANSYSCALL: 'syscall+s',
        G_SCANWAITING: 'waiting+s',
    }
    
    
    #
    #  Value wrappers
    #
    
    class SliceValue:
    	"Wrapper for slice values."
    
    	def __init__(self, val):
    		self.val = val
    
    	@property
    	def len(self):
    		return int(self.val['len'])
    
    	@property
    	def cap(self):
    		return int(self.val['cap'])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. src/encoding/gob/debug.go

    	u := deb.uint64()
    	length := int(u)
    	for i := 0; i < length; i++ {
    		deb.fieldValue(indent+1, keyId)
    		deb.fieldValue(indent+1, elemId)
    	}
    }
    
    // SliceValue:
    //
    //	uint(n) (n FieldValue)
    func (deb *debugger) sliceValue(indent tab, wire *wireType) {
    	elemId := wire.SliceT.Elem
    	u := deb.uint64()
    	length := int(u)
    	deb.dump("Start of slice of length %d", length)
    
    	for i := 0; i < length; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  3. src/encoding/gob/doc.go

    TypedValue:
    	int(typeId) Value
    TypeDefinition:
    	int(-typeId) encodingOfWireType
    Value:
    	SingletonValue | StructValue
    SingletonValue:
    	uint(0) FieldValue
    FieldValue:
    	builtinValue | ArrayValue | MapValue | SliceValue | StructValue | InterfaceValue
    InterfaceValue:
    	NilInterfaceValue | NonNilInterfaceValue
    NilInterfaceValue:
    	uint(0)
    NonNilInterfaceValue:
    	ConcreteTypeName TypeSequence InterfaceContents
    ConcreteTypeName:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    		// Convert extra from []int to []Value.
    		e0 := make([]Value, len(test.extra))
    		for j, e := range test.extra {
    			e0[j] = ValueOf(e)
    		}
    		// Convert extra from []int to *SliceValue.
    		e1 := ValueOf(test.extra)
    
    		// Test Append.
    		a0 := ValueOf(&test.orig).Elem()
    		have0 := Append(a0, e0...)
    		if have0.CanAddr() {
    			t.Errorf("Append #%d: have slice should not be addressable", i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top