Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for Renoth (0.16 sec)

  1. cmd/erasure-decode_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if n != length {
    		t.Errorf("erasureCreateFile returned %d, expected %d", n, length)
    	}
    
    	// To generate random offset/length.
    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for i := 0; i < iterations; i++ {
    		offset := r.Int63n(length)
    		readLen := r.Int63n(length - offset)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. cmd/erasure-utils.go

    )
    
    // getDataBlockLen - get length of data blocks from encoded blocks.
    func getDataBlockLen(enBlocks [][]byte, dataBlocks int) int {
    	size := 0
    	// Figure out the data block length.
    	for _, block := range enBlocks[:dataBlocks] {
    		size += len(block)
    	}
    	return size
    }
    
    // Writes all the data blocks from encoded blocks until requested
    // outSize length. Provides a way to skip bytes until the offset.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. cmd/warm-backend-minio.go

    	}
    	return partSize, nil
    }
    
    func (m *warmBackendMinIO) Put(ctx context.Context, object string, r io.Reader, length int64) (remoteVersionID, error) {
    	partSize, err := optimalPartSize(length)
    	if err != nil {
    		return remoteVersionID(""), err
    	}
    	res, err := m.client.PutObject(ctx, m.Bucket, m.getDest(object), r, length, minio.PutObjectOptions{
    		StorageClass:         m.StorageClass,
    		PartSize:             uint64(partSize),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    			off, decOff, firstPart, decryptSkip, seqNum = getCompressedOffsets(oi, off, decrypt)
    			decLength = length
    			length = oi.Size - off
    			// For negative length we read everything.
    			if decLength < 0 {
    				decLength = actualSize - decOff
    			}
    
    			// Reply back invalid range if the input offset and length fall out of range.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. migrator/migrator.go

    					isSameType = true
    					break
    				}
    			}
    
    			if !isSameType {
    				alterColumn = true
    			}
    		}
    	}
    
    	if !isSameType {
    		// check size
    		if length, ok := columnType.Length(); length != int64(field.Size) {
    			if length > 0 && field.Size > 0 {
    				alterColumn = true
    			} else {
    				// has size in data type and not equal
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  6. internal/grid/connection.go

    	var n int
    	switch {
    	case f.Header.Length <= len7:
    		bts[1] = byte(f.Header.Length)
    		n = 2
    
    	case f.Header.Length <= len16:
    		bts[1] = 126
    		binary.BigEndian.PutUint16(bts[2:4], uint16(f.Header.Length))
    		n = 4
    
    	case f.Header.Length <= len64:
    		bts[1] = 127
    		binary.BigEndian.PutUint64(bts[2:10], uint64(f.Header.Length))
    		n = 10
    
    	default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  7. cmd/warm-backend-azure.go

    }
    
    // FIXME: add support for remote version ID in Azure remote tier and remove
    // this. Currently it's a no-op.
    
    func (az *warmBackendAzure) Put(ctx context.Context, object string, r io.Reader, length int64) (remoteVersionID, error) {
    	blobURL := az.serviceURL.NewContainerURL(az.Bucket).NewBlockBlobURL(az.getDest(object))
    	// set tier if specified -
    	if az.StorageClass != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 05 16:44:08 GMT 2024
    - 7.8K bytes
    - Viewed (1)
  8. internal/crypto/key.go

    func GenerateKey(extKey []byte, random io.Reader) (key ObjectKey) {
    	if random == nil {
    		random = rand.Reader
    	}
    	if len(extKey) != 32 { // safety check
    		logger.CriticalIf(context.Background(), errors.New("crypto: invalid key length"))
    	}
    	var nonce [32]byte
    	if _, err := io.ReadFull(random, nonce[:]); err != nil {
    		logger.CriticalIf(context.Background(), errOutOfEntropy)
    	}
    
    	const Context = "object-encryption-key generation"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  9. cmd/peer-rest-client.go

    // after verifying format.json
    func (client *peerRESTClient) call(method string, values url.Values, body io.Reader, length int64) (respBody io.ReadCloser, err error) {
    	return client.callWithContext(GlobalContext, method, values, body, length)
    }
    
    // Wrapper to restClient.Call to handle network errors, in case of network error the connection is marked disconnected
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  10. internal/bpool/bpool.go

    	if capwidth > 0 && capwidth < 64 {
    		panic("buffer capped with smaller than 64 bytes is not supported")
    	}
    	if capwidth > 0 && width > capwidth {
    		panic("buffer length cannot be > capacity of the buffer")
    	}
    	return &BytePoolCap{
    		c:    make(chan []byte, maxSize),
    		w:    width,
    		wcap: capwidth,
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top