Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 156 for correctly (0.19 sec)

  1. src/bytes/bytes_test.go

    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    			p := IndexByte(b[i:i+15], byte(100+j))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    			ReplicaSync:             "enable",
    			ExistingObjectReplicate: "enable",
    		}
    
    		switch {
    		case hasRule:
    			if ruleARN != opts.DestBucket {
    				// remove stale replication rule and replace rule with correct target ARN
    				if len(replicationConfig.Rules) > 1 {
    					err = replicationConfig.RemoveRule(opts)
    				} else {
    					replicationConfig = replication.Config{}
    				}
    				if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  3. cmd/format-meta.go

    	formatConfigFile = "format.json"
    )
    
    const (
    	// Version of the formatMetaV1
    	formatMetaVersionV1 = "1"
    )
    
    // format.json currently has the format:
    // {
    //   "version": "1",
    //   "format": "XXXXX",
    //   "XXXXX": {
    //
    //   }
    // }
    // Here "XXXXX" depends on the backend, currently we have "fs" and "xl" implementations.
    // formatMetaV1 should be inherited by backend format structs. Please look at format-fs.go
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    	smallFileThreshold = 128 * humanize.KiByte // Optimized for NVMe/SSDs
    
    	// For hardrives it is possible to set this to a lower value to avoid any
    	// spike in latency. But currently we are simply keeping it optimal for SSDs.
    
    	// bigFileThreshold is the point where we add readahead to put operations.
    	bigFileThreshold = 128 * humanize.MiByte
    
    	// XL metadata file carries per object metadata.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/encryption-v1.go

    	errInvalidEncryptionParametersSSEC = errors.New("SSE-C encryption parameters are not supported on this bucket")
    )
    
    const (
    	// SSECustomerKeySize is the size of valid client provided encryption keys in bytes.
    	// Currently AWS supports only AES256. So the SSE-C key size is fixed to 32 bytes.
    	SSECustomerKeySize = 32
    
    	// SSEIVSize is the size of the IV data
    	SSEIVSize = 32 // 32 bytes
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  6. internal/kms/identity-manager.go

    )
    
    // IdentityManager is the generic interface that handles KMS identity operations
    type IdentityManager interface {
    	// DescribeIdentity describes an identity by returning its metadata.
    	// e.g. which policy is currently assigned and whether its an admin identity.
    	DescribeIdentity(ctx context.Context, identity string) (*kes.IdentityInfo, error)
    
    	// DescribeSelfIdentity describes the identity issuing the request.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. tests/count_test.go

    		t.Errorf("Count() method should get correct value, expect: %v, got %v", count, len(users))
    	}
    
    	if err := DB.Model(&User{}).Where("name = ?", user1.Name).Or("name = ?", user3.Name).Count(&count).Find(&users).Error; err != nil {
    		t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    
    	if count != int64(len(users)) {
    		t.Errorf("Count() method should get correct value, expect: %v, got %v", count, len(users))
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  8. internal/http/request-recorder.go

    	n, err = r.Reader.Read(p)
    	r.bytesRead += n
    
    	if r.LogBody {
    		r.buf.Write(p[:n])
    	}
    	if err != nil {
    		return n, err
    	}
    	return n, err
    }
    
    // Size returns the body size if the currently read object
    func (r *RequestRecorder) Size() int {
    	return r.bytesRead
    }
    
    // Data returns the bytes that were recorded.
    func (r *RequestRecorder) Data() []byte {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 12 21:37:19 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. internal/config/callhome/callhome.go

    // Enabled - indicates if callhome is enabled or not
    func (c *Config) Enabled() bool {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	return c.Enable
    }
    
    // FrequencyDur - returns the currently configured callhome frequency
    func (c *Config) FrequencyDur() time.Duration {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	if c.Frequency == 0 {
    		return callhomeCycleDefault
    	}
    
    	return c.Frequency
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  10. docs/debugging/hash-set/main.go

    	"fmt"
    	"hash/crc32"
    	"log"
    	"os"
    	"strings"
    
    	"github.com/dchest/siphash"
    	"github.com/google/uuid"
    )
    
    // hashes the key returning an integer based on the input algorithm.
    // This function currently supports
    // - SIPMOD
    func sipHashMod(key string, cardinality int, id [16]byte) int {
    	if cardinality <= 0 {
    		return -1
    	}
    	// use the faster version as per siphash docs
    	// https://github.com/dchest/siphash#usage
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top