Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 947 for asSlice (0.52 sec)

  1. src/internal/types/testdata/spec/assignability.go

    // proto-types for tests
    
    type (
    	_Basic     = int
    	_Array     = [10]int
    	_Slice     = []int
    	_Struct    = struct{ f int }
    	_Pointer   = *int
    	_Func      = func(x int) string
    	_Interface = interface{ m() int }
    	_Map       = map[string]int
    	_Chan      = chan int
    
    	Basic     _Basic
    	Array     _Array
    	Slice     _Slice
    	Struct    _Struct
    	Pointer   _Pointer
    	Func      _Func
    	Interface _Interface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. docs_src/security/tutorial005.py

            "email": "******@****.***",
            "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Chains",
            "email": "******@****.***",
            "hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm",
            "disabled": True,
        },
    }
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs_src/security/tutorial005_an.py

            "email": "******@****.***",
            "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Chains",
            "email": "******@****.***",
            "hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm",
            "disabled": True,
        },
    }
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. src/encoding/gob/encgen.go

    const arrayHelper = `
    func enc%[2]sArray(state *encoderState, v reflect.Value) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return enc%[2]sSlice(state, v.Slice(0, v.Len()))
    }
    `
    
    const sliceHelper = `
    func enc%[2]sSlice(state *encoderState, v reflect.Value) bool {
    	slice, ok := v.Interface().([]%[1]s)
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/os/readfrom_linux_test.go

    		}
    	} else {
    		r = src
    	}
    	// Now call ReadFrom (through io.Copy), which will hopefully call poll.Splice
    	n, err := io.Copy(dst, r)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// We should have called poll.Splice with the right file descriptor arguments.
    	if n > 0 && !hook.called {
    		t.Fatal("expected to called poll.Splice")
    	}
    	if hook.called && hook.dstfd != int(dst.Fd()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyResolveIntegrationTest.groovy

                rootProject.name = 'test'
            """
            def main = ivyRepo.module("org", "foo")
                .configuration("bob")
                .configuration("alice")
                .dependsOn(organisation: "org", module: "bar", revision: "1.0", conf: 'alice->extra')
            main.configurations.remove('default')
            main.publish()
    
            def dep = ivyRepo.module("org", "bar", "1.0")
                .configuration("extra")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 13:59:13 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    	case asmSlice:
    		cc = append(cc, newComponent(suffix+"_base", asmKind(arch.ptrSize), "slice base", off, arch.ptrSize, suffix))
    		cc = append(cc, newComponent(suffix+"_len", asmKind(arch.intSize), "slice len", off+arch.ptrSize, arch.intSize, suffix))
    		cc = append(cc, newComponent(suffix+"_cap", asmKind(arch.intSize), "slice cap", off+arch.ptrSize+arch.intSize, arch.intSize, suffix))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    }
    
    // fields is a pointer to a slice of *Field.
    // This saves space in Types that do not have fields or methods
    // compared to a simple slice of *Field.
    type fields struct {
    	s *[]*Field
    }
    
    // Slice returns the entries in f as a slice.
    // Changes to the slice entries will be reflected in f.
    func (f *fields) Slice() []*Field {
    	if f.s == nil {
    		return nil
    	}
    	return *f.s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/range.go

    			body = []ir.Node{rangeAssign(nrange, hv1)}
    		}
    
    	case k == types.TARRAY, k == types.TSLICE, k == types.TPTR: // TPTR is pointer-to-array
    		if nn := arrayRangeClear(nrange, v1, v2, a); nn != nil {
    			base.Pos = lno
    			return nn
    		}
    
    		// Element type of the iteration
    		var elem *types.Type
    		switch t.Kind() {
    		case types.TSLICE, types.TARRAY:
    			elem = t.Elem()
    		case types.TPTR:
    			elem = t.Elem().Elem()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/convert.go

    			appendWalkStmt(init, as)
    		}
    
    		// Slice the [n]byte to a []byte.
    		slice := ir.NewSliceExpr(n.Pos(), ir.OSLICEARR, p, nil, nil, nil)
    		slice.SetType(n.Type())
    		slice.SetTypecheck(1)
    		return walkExpr(slice, init)
    	}
    
    	a := typecheck.NodNil()
    	if n.Esc() == ir.EscNone {
    		// Create temporary buffer for slice on stack.
    		a = stackBufAddr(tmpstringbufsize, types.Types[types.TUINT8])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
Back to top