Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 35 of 35 for unwrap (0.15 sec)

  1. misc/cgo/gmp/gmp.go

    */
    package gmp
    
    /*
    #cgo LDFLAGS: -lgmp
    #include <gmp.h>
    #include <stdlib.h>
    
    // gmp 5.0.0+ changed the type of the 3rd argument to mp_bitcnt_t,
    // so, to support older versions, we wrap these two functions.
    void _mpz_mul_2exp(mpz_ptr a, mpz_ptr b, unsigned long n) {
    	mpz_mul_2exp(a, b, n);
    }
    void _mpz_div_2exp(mpz_ptr a, mpz_ptr b, unsigned long n) {
    	mpz_div_2exp(a, b, n);
    }
    */
    import "C"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  2. cmd/server-main.go

    		return fmt.Errorf("Unable to initialize sub-systems: %w", err)
    	}
    }
    
    func initConfigSubsystem(ctx context.Context, newObject ObjectLayer) error {
    	// %w is used by all error returns here to make sure
    	// we wrap the underlying error, make sure when you
    	// are modifying this code that you do so, if and when
    	// you want to add extra context to your error. This
    	// ensures top level retry works accordingly.
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  3. cmd/erasure-sets.go

    				disk.Close()
    				return nil, nil, fmt.Errorf("Drive: %s is a root drive", disk)
    			}
    		}
    		disk.Close()
    		return nil, nil, fmt.Errorf("Drive: %s returned %w", disk, err) // make sure to '%w' to wrap the error
    	}
    
    	disk.Close()
    	disk, err = newStorageAPI(endpoint, storageOpts{
    		cleanUp:     true,
    		healthCheck: true,
    	})
    	if err != nil {
    		return nil, nil, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  4. src/bufio/bufio_test.go

    	b := NewReaderSize(strings.NewReader("hello world"), BufSize)
    	// Does it recognize itself?
    	b1 := NewReaderSize(b, BufSize)
    	if b1 != b {
    		t.Error("NewReaderSize did not detect underlying Reader")
    	}
    	// Does it wrap if existing buffer is too small?
    	b2 := NewReaderSize(b, 2*BufSize)
    	if b2 == b {
    		t.Error("NewReaderSize did not enlarge buffer")
    	}
    }
    
    func TestNewWriterSizeIdempotent(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    	// and the Metrics API handler returns a 500 HTTP status code. This should
    	// normally not happen, and usually indicates a bug.
    	logger.CriticalIf(GlobalContext, errors.Wrap(err, "failed to get metrics"))
    
    	promMetrics := metricValues.ToPromMetrics(mg.CollectorPath.metricPrefix(),
    		mg.ExtraLabels)
    	for _, metric := range promMetrics {
    		ch <- metric
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top