Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 259 for init (0.13 sec)

  1. cmd/encryption-v1_test.go

    	// decrypted range computation, written solely for the purpose
    	// of the unit tests.
    	//
    	// `s` gives the decrypted part sizes, and the other
    	// parameters describe the desired read segment. When
    	// `isFromEnd` is true, `skipLen` argument is ignored.
    	decryptedRangeRef := func(s []int64, skipLen, readLen int64, isFromEnd bool) (o, l, skip int64, sn uint32, ps int) {
    		oSize := lsum(s)
    		if isFromEnd {
    			skipLen = oSize - readLen
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  2. cmd/peer-s3-client.go

    	GetHost() string
    	SetPools([]int)
    	GetPools() []int
    }
    
    type localPeerS3Client struct {
    	node  Node
    	pools []int
    }
    
    func (l *localPeerS3Client) GetHost() string {
    	return l.node.Host
    }
    
    func (l *localPeerS3Client) SetPools(p []int) {
    	l.pools = make([]int, len(p))
    	copy(l.pools, p)
    }
    
    func (l localPeerS3Client) GetPools() []int {
    	return l.pools
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-rebalance.go

    		noLockOpts := ObjectOptions{NoLock: true}
    		return z.rebalMeta.saveWithOpts(ctx, z.serverPools[0], noLockOpts)
    	}
    
    	return nil
    }
    
    func (z *erasureServerPools) findIndex(index int) int {
    	for i := 0; i < len(z.rebalMeta.PoolStats); i++ {
    		if i == index {
    			return index
    		}
    	}
    	return -1
    }
    
    // initRebalanceMeta initializes rebalance metadata for a new rebalance
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  4. internal/grid/types.go

    }
    
    // Msgsize returns the size of an empty JSON object.
    func (j *JSON[T]) Msgsize() int {
    	return j.p.emptySz
    }
    
    // NoPayload is a type that can be used for handlers that do not use a payload.
    type NoPayload struct{}
    
    // Msgsize returns 0.
    func (p NoPayload) Msgsize() int {
    	return 0
    }
    
    // UnmarshalMsg satisfies the interface, but is a no-op.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. cmd/metrics-v2_gen.go

    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *MetricDescription) Msgsize() (s int) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  6. internal/s3select/sql/value.go

    func FromArray(a []Value) *Value {
    	return &Value{value: a}
    }
    
    // ToFloat works for int and float values
    func (v Value) ToFloat() (val float64, ok bool) {
    	switch x := v.value.(type) {
    	case float64:
    		return x, true
    	case int64:
    		return float64(x), true
    	}
    	return 0, false
    }
    
    // ToInt returns the value if int.
    func (v Value) ToInt() (val int64, ok bool) {
    	val, ok = v.value.(int64)
    	return
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  7. cmd/data-usage_test.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"testing"
    )
    
    type usageTestFile struct {
    	name string
    	size int
    }
    
    func TestDataUsageUpdate(t *testing.T) {
    	base := t.TempDir()
    	const bucket = "bucket"
    	files := []usageTestFile{
    		{name: "rootfile", size: 10000},
    		{name: "rootfile2", size: 10000},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. internal/grid/msg_gen.go

    			return
    		}
    		(*z) = Flags(zb0001)
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z Flags) Msgsize() (s int) {
    	s = msgp.Uint8Size
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *HandlerID) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 18.8K bytes
    - Viewed (0)
  9. internal/hash/checksum.go

    		return xhttp.AmzChecksumSHA1
    	case c.Is(ChecksumSHA256):
    		return xhttp.AmzChecksumSHA256
    	}
    	return ""
    }
    
    // RawByteLen returns the size of the un-encoded checksum.
    func (c ChecksumType) RawByteLen() int {
    	switch {
    	case c.Is(ChecksumCRC32):
    		return 4
    	case c.Is(ChecksumCRC32C):
    		return 4
    	case c.Is(ChecksumSHA1):
    		return sha1.Size
    	case c.Is(ChecksumSHA256):
    		return sha256.Size
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. cmd/batch-job-common-types_gen.go

    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BatchJobKV) Msgsize() (s int) {
    	s = 1 + 4 + msgp.StringPrefixSize + len(z.Key) + 6 + msgp.StringPrefixSize + len(z.Value)
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *BatchJobNotification) DecodeMsg(dc *msgp.Reader) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top