Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for function (0.24 sec)

  1. src/cmd/cgo/gcc.go

    	//            C.f(_cgo0)
    	//    }()
    	// Using a function literal like this lets us evaluate the
    	// function arguments only once while doing pointer checks.
    	// This is particularly useful when passing additional arguments
    	// to _cgoCheckPointer, as done in checkIndex and checkAddr.
    	//
    	// When the function argument is a conversion to unsafe.Pointer,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    )
    
    // Temp files created in default Tmp dir
    var globalTestTmpDir = os.TempDir()
    
    // reseed - returns a new seed every time the function is called.
    func reseed() uint32 {
    	return uint32(time.Now().UnixNano() + int64(os.Getpid()))
    }
    
    // nextSuffix - provides a new unique suffix every time the function is called.
    func nextSuffix() string {
    	randmu.Lock()
    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    		}
    	}
    	var allocTests = []struct {
    		a []byte
    		b []byte
    		i int
    	}{
    		// case for function Index.
    		{[]byte("000000000000000000000000000000000000000000000000000000000000000000000001"), []byte("0000000000000000000000000000000000000000000000000000000000000000001"), 5},
    		// case for function LastIndex.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    //
    // It is callers responsibility to set correct versionID, this
    // function shouldn't be further extended to update immutable
    // values such as ErasureInfo, ChecksumInfo.
    //
    // Metadata is only updated to new values, existing values
    // stay as is, if you wish to update all values you should
    // update all metadata freshly before calling this function
    // in-case you wish to clear existing metadata.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  5. cmd/admin-handlers.go

    		return zerr
    	}
    	_, err := io.Copy(zwriter, bytes.NewReader(data))
    	return err
    }
    
    // getClusterMetaInfo gets information of the current cluster and
    // returns it.
    // This is not a critical function, and it is allowed
    // to fail with a ten seconds timeout, returning nil.
    func getClusterMetaInfo(ctx context.Context) []byte {
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil {
    		return nil
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  6. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrUnsupportedNotification: {
    		Code:           "UnsupportedNotification",
    		Description:    "MinIO server does not support Topic or Cloud Function based notifications.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidCopyPartRange: {
    		Code:           "InvalidArgument",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  7. istioctl/pkg/describe/describe.go

    		return ingress.service.Status.LoadBalancer.Ingress[0].IP
    	}
    
    	if hIP := ingress.pods[0].Status.HostIP; hIP != "" {
    		return hIP
    	}
    
    	// The scope of this function is to get the IP from Kubernetes, we do not
    	// ask Docker or minikube for an IP.
    	// See https://istio.io/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports
    	return "unknown"
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    			return []byte(data), err
    		},
    		// ReadLine doesn't fit the data/pattern easily
    		// so we leave it out. It should be covered via
    		// the ReadSlice test since ReadLine simply calls
    		// ReadSlice, and it's that function that handles
    		// the last byte.
    	}
    
    	// Try all readers with UnreadByte.
    	for rno, read := range readers {
    		// Some input data that is longer than the minimum reader buffer size.
    		const n = 10
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    	}
    
    	pr, pw := xioutil.WaitPipe()
    	go func() {
    		pw.CloseWithError(er.getObjectWithFileInfo(ctx, bucket, object, off, length, pw, fi, metaArr, onlineDisks))
    	}()
    
    	// Cleanup function to cause the go routine above to exit, in
    	// case of incomplete read.
    	pipeCloser := func() {
    		pr.CloseWithError(nil)
    	}
    
    	if !unlockOnDefer {
    		return fn(pr, h, pipeCloser, nsUnlocker)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  10. cmd/erasure-server-pool.go

    		return gr.WithCleanupFuncs(nsUnlocker), nil
    	}
    	return gr, nil
    }
    
    // getLatestObjectInfoWithIdx returns the objectInfo of the latest object from multiple pools (this function
    // is present in-case there were duplicate writes to both pools, this function also returns the
    // additional index where the latest object exists, that is used to start the GetObject stream.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
Back to top