Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 530 for Allocate (0.13 sec)

  1. test/ken/embed.go

    	if p.a != p.a1 {
    		println("SubpSub", p, p.a1)
    		panic("fail")
    	}
    	return p.a
    }
    
    /******
     ******
     ******/
    
    func main() {
    	var i I
    	var s *S
    
    	// allocate
    	s = new(S)
    	s.Subp = new(Subp)
    	s.Sub.SubSubp = new(SubSubp)
    	s.Subp.SubpSubp = new(SubpSubp)
    
    	// explicit assignment
    	s.a = 1
    	s.Sub.a = 2
    	s.Subp.a = 3
    	s.Sub.SubSub.a = 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/bcache/cache.go

    	//     The next time down the list, we can stop at noK,
    	//     because new entries are inserted at the front of the list.
    	//     This guarantees we never traverse an entry
    	//     multiple times.
    	//
    	//  2. We only allocate the entry to be added once,
    	//     saving it in add for the next attempt.
    	var add, noK *cacheEntry[K, V]
    	n := 0
    	for {
    		e := head.Load()
    		start := e
    		for ; e != nil && e != noK; e = e.next {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  3. src/index/suffixarray/suffixarray.go

    	}
    	if int64(int(n64)) != n64 || int(n64) < 0 {
    		return errTooBig
    	}
    	n := int(n64)
    
    	// allocate space
    	if 2*n < cap(x.data) || cap(x.data) < n || x.sa.int32 != nil && n > maxData32 || x.sa.int64 != nil && n <= maxData32 {
    		// new data is significantly smaller or larger than
    		// existing buffers - allocate new ones
    		x.data = make([]byte, n)
    		x.sa.int32 = nil
    		x.sa.int64 = nil
    		if n <= maxData32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/os/path_windows.go

    			// Already extended with \\?\ or any combination of directory separators.
    			return path
    		}
    	}
    
    	// Do nothing (and don't allocate) if the path is "short".
    	// Empirically (at least on the Windows Server 2013 builder),
    	// the kernel is arbitrarily okay with < 248 bytes. That
    	// matches what the docs above say:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/pluggable_profiler/pluggable_profiler.h

      // Cleans up fields inside `TP_Profiler` that were allocated
      // by the plugin. `profiler` itself must not be deleted by the plugin.
      void (*destroy_profiler)(TP_Profiler* profiler);
      // [out] Pointer to plugin's `TP_ProfilerFns` clean up function.
      // Cleans up fields inside `TP_ProfilerFns` that were allocated
      // by the plugin. `profiler_fns` itself must not be deleted by the plugin.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 14 20:04:34 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/NamingTest.java

            }
            runFilenameTest(splitString(str, 8));
        }
    
    
        private static String makeCharsetString ( Charset cs, int min, int max, int... excludes ) {
            ByteBuffer buf = ByteBuffer.allocate(128);
            Arrays.sort(excludes);
            for ( int i = 128; i < 255; i++ ) {
                int idx = Arrays.binarySearch(excludes, i);
                if ( idx < 0 || excludes[ idx ] == i ) {
                    continue;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  7. src/net/writev_test.go

    	}
    	c2.Close()
    
    	// 1 GB of data should be enough to notice the connection is gone.
    	// Just a few bytes is not enough.
    	// Arrange to reuse the same 1 MB buffer so that we don't allocate much.
    	buf := make([]byte, 1<<20)
    	buffers := make(Buffers, 1<<10)
    	for i := range buffers {
    		buffers[i] = buf
    	}
    	if _, err := buffers.WriteTo(c1); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. pkg/controller/nodeipam/ipam/cidr_allocator.go

    	cidrUpdateRetries = 3
    )
    
    // nodePollInterval is used in listing node
    var nodePollInterval = 10 * time.Second
    
    // CIDRAllocator is an interface implemented by things that know how
    // to allocate/occupy/recycle CIDR for nodes.
    type CIDRAllocator interface {
    	// AllocateOrOccupyCIDR looks at the given node, assigns it a valid
    	// CIDR if it doesn't currently have one or mark the CIDR as used if
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/networking/v1alpha1/types_swagger_doc_generated.go

    	return map_ParentReference
    }
    
    var map_ServiceCIDR = map[string]string{
    	"":         "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.",
    	"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:58 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/framer/framer.go

    	m := json.RawMessage(data[:0])
    	if err := r.decoder.Decode(&m); err != nil {
    		return 0, err
    	}
    
    	// If capacity of data is less than length of the message, decoder will allocate a new slice
    	// and set m to it, which means we need to copy the partial result back into data and preserve
    	// the remaining result for subsequent reads.
    	if len(m) > cap(data) {
    		copy(data, m)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 13:33:12 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top