Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 388 for SLICE (0.07 sec)

  1. src/net/ip.go

    // This library accepts either size of byte slice but always
    // returns 16-byte addresses.
    
    package net
    
    import (
    	"internal/bytealg"
    	"internal/itoa"
    	"internal/stringslite"
    	"net/netip"
    )
    
    // IP address lengths (bytes).
    const (
    	IPv4len = 4
    	IPv6len = 16
    )
    
    // An IP is a single IP address, a slice of bytes.
    // Functions in this package accept either 4-byte (IPv4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation.go

    	return allErrs
    }
    
    // validateSliceIsASet ensures that a slice contains no duplicates and does not exceed a certain maximum size.
    func validateSliceIsASet[T comparable](slice []T, maxSize int, validateItem func(item T, fldPath *field.Path) field.ErrorList, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    	allItems := sets.New[T]()
    	for i, item := range slice {
    		idxPath := fldPath.Index(i)
    		if allItems.Has(item) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  3. internal/logger/targets.go

    	// This is always set represent /dev/console target
    	consoleTgt Target
    )
    
    // SystemTargets returns active targets.
    // Returned slice may not be modified in any way.
    func SystemTargets() []Target {
    	return systemTargets.get()
    }
    
    // AuditTargets returns active audit targets.
    // Returned slice may not be modified in any way.
    func AuditTargets() []Target {
    	return auditTargets.get()
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/signature.go

    		n := params.Len()
    		if n == 0 {
    			panic("variadic function must have at least one parameter")
    		}
    		core := coreString(params.At(n - 1).typ)
    		if _, ok := core.(*Slice); !ok && !isString(core) {
    			panic(fmt.Sprintf("got %s, want variadic parameter with unnamed slice type or string as core type", core.String()))
    		}
    	}
    	sig := &Signature{recv: recv, params: params, results: results, variadic: variadic}
    	if len(recvTypeParams) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. operator/pkg/name/name.go

    	Content string
    }
    
    // ManifestMap is a map of ComponentName to its manifest string.
    type ManifestMap map[ComponentName][]string
    
    // Consolidated returns a representation of mm where all manifests in the slice under a key are combined into a single
    // manifest.
    func (mm ManifestMap) Consolidated() map[string]string {
    	out := make(map[string]string)
    	for cname, ms := range mm {
    		allM := ""
    		for _, m := range ms {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/syscall/getdirentries_test.go

    		if n == 0 {
    			break
    		}
    		data := buf[:n]
    		for len(data) > 0 {
    			// If multiple Dirents are written into buf, sometimes when we reach the final one,
    			// we have cap(buf) < Sizeof(Dirent). So use an appropriate slice to copy from data.
    			var dirent syscall.Dirent
    			copy((*[unsafe.Sizeof(dirent)]byte)(unsafe.Pointer(&dirent))[:], data)
    
    			data = data[dirent.Reclen:]
    			name := make([]byte, dirent.Namlen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    |e===i.length-1?[i,void 0]:rt(i)&&!i.includes("]/[")?[i,void 0]:[i.slice(0,e),i.slice(e+1)]}function Ct(i){if(typeof i=="string"&&i.includes("<alpha-value>")){let e=i;return({opacityValue:t=1})=>e.replace("<alpha-value>",t)}return i}function Uu(i){return L(i.slice(1,-1))}function Ub(i,e={},{tailwindConfig:t={}}={}){if(e.values?.[i]!==void 0)return Ct(e.values?.[i]);let[r,n]=Vu(i);if(n!==void 0){let a=e.values?.[r]??(rt(r)?r.slice(1,-1):void 0);return a===void 0?void 0:(a=Ct(a),rt(n)?Ie(a,Uu(n)):...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
  8. src/embed/embed.go

    // and then print its contents at run time.
    //
    // Embedding one file into a string:
    //
    //	import _ "embed"
    //
    //	//go:embed hello.txt
    //	var s string
    //	print(s)
    //
    // Embedding one file into a slice of bytes:
    //
    //	import _ "embed"
    //
    //	//go:embed hello.txt
    //	var b []byte
    //	print(string(b))
    //
    // Embedded one or more files into a file system:
    //
    //	import "embed"
    //
    //	//go:embed hello.txt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. src/encoding/asn1/marshal.go

    		}
    		tag = TagSet
    	}
    
    	// makeField can be called for a slice that should be treated as a SET
    	// but doesn't have params.set set, for instance when using a slice
    	// with the SET type name suffix. In this case getUniversalType returns
    	// TagSet, but makeBody doesn't know about that so will treat the slice
    	// as a sequence. To work around this we set params.set.
    	if tag == TagSet && !params.set {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	// pass a byte slice to the method to avoid allocations.
    	AsCanonicalBytes(out []byte) ([]byte, int32)
    	// AsCanonicalBase1024Bytes returns a byte array representing the string representation
    	// of the value mantissa and an int32 representing its exponent in base-1024. Callers
    	// may pass a byte slice to the method to avoid allocations.
    	AsCanonicalBase1024Bytes(out []byte) ([]byte, int32)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top