Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 330 for size (0.14 sec)

  1. cmd/site-replication-metrics.go

    			Count: float64(minuteTotals.N),
    			Bytes: minuteTotals.Size,
    		},
    		LastHour: madmin.RStat{
    			Count: float64(hourTotals.N),
    			Bytes: hourTotals.Size,
    		},
    		Totals: madmin.RStat{
    			Count: float64(rt.SinceUptime.Count),
    			Bytes: rt.SinceUptime.Bytes,
    		},
    		ErrCounts: errCounts,
    	}
    }
    
    func (rt *RTimedMetrics) addsize(size int64, err error) {
    	// failures seen since uptime
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. cmd/encryption-v1.go

    		if err != nil {
    			err = errObjectTampered // assign correct error type
    		}
    		return int64(size), err
    	}
    
    	var size int64
    	for _, part := range o.Parts {
    		partSize, err := sio.DecryptedSize(uint64(part.Size))
    		if err != nil {
    			return 0, errObjectTampered
    		}
    		size += int64(partSize)
    	}
    	return size, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  3. src/archive/tar/tar_test.go

    		wantValid:    true,
    		wantInverted: []sparseEntry{{0, 5000}},
    	}, {
    		in: []sparseEntry{{1, 0}}, size: 0,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{-1, 0}}, size: 100,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{0, -1}}, size: 100,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{0, 0}}, size: -100,
    		wantValid: false,
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. cmd/last-minute_gen.go

    		switch msgp.UnsafeString(field) {
    		case "Total":
    			z.Total, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "Total")
    				return
    			}
    		case "Size":
    			z.Size, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "N":
    			z.N, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "N")
    				return
    			}
    		default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jul 05 21:45:49 GMT 2022
    - 17.2K bytes
    - Viewed (0)
  5. cmd/erasure-multipart.go

    	}
    
    	// Fetch buffer for I/O, returns from the pool if not allocates a new one and returns.
    	var buffer []byte
    	switch size := data.Size(); {
    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size == -1:
    		if size := data.ActualSize(); size > 0 && size < fi.Erasure.BlockSize {
    			// Account for padding and forced compression overhead and encryption.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  6. cmd/bitrot.go

    		return bw.Sum(nil)
    	}
    	return nil
    }
    
    // Returns the size of the file with bitrot protection
    func bitrotShardFileSize(size int64, shardSize int64, algo BitrotAlgorithm) int64 {
    	if algo != HighwayHash256S {
    		return size
    	}
    	return ceilFrac(size, shardSize)*int64(algo.New().Size()) + size
    }
    
    // bitrotVerify a single stream of data.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  7. internal/bpool/bpool_test.go

    	}
    
    	bufPool.Put(b)
    
    	// Close the channel so we can iterate over it.
    	close(bufPool.c)
    
    	// Check the size of the pool.
    	if uint64(len(bufPool.c)) != size {
    		t.Fatalf("bytepool size invalid: got %v want %v", len(bufPool.c), size)
    	}
    
    	bufPoolNoCap := NewBytePoolCap(size, width, 0)
    	// Check the width
    	if bufPoolNoCap.Width() != width {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 19:13:27 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. src/bufio/bufio.go

    	if ok && len(b.buf) >= size {
    		return b
    	}
    	r := new(Reader)
    	r.reset(make([]byte, max(size, minReadBufferSize)), rd)
    	return r
    }
    
    // NewReader returns a new [Reader] whose buffer has the default size.
    func NewReader(rd io.Reader) *Reader {
    	return NewReaderSize(rd, defaultBufSize)
    }
    
    // Size returns the size of the underlying buffer in bytes.
    func (b *Reader) Size() int { return len(b.buf) }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  9. cmd/handler-utils.go

    	"X-Minio-Internal-Server-Side-Encryption-Sealed-Key":     "X-Minio-Replication-Server-Side-Encryption-Sealed-Key",
    	"X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm": "X-Minio-Replication-Server-Side-Encryption-Seal-Algorithm",
    	"X-Minio-Internal-Server-Side-Encryption-Iv":             "X-Minio-Replication-Server-Side-Encryption-Iv",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  10. cmd/sts-datatypes.go

    	// access key, and a security (or session) token.
    	//
    	// Note: The size of the security token that STS APIs return is not fixed. We
    	// strongly recommend that you make no assumptions about the maximum size. As
    	// of this writing, the typical size is less than 4096 bytes, but that can vary.
    	// Also, future updates to AWS might require larger sizes.
    	Credentials auth.Credentials `xml:",omitempty"`
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 9.9K bytes
    - Viewed (0)
Back to top