Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for actualSize (0.12 sec)

  1. internal/hash/reader.go

    		}
    
    		r.checksum = MD5
    		r.contentSHA256 = SHA256
    		if r.size < 0 && size >= 0 {
    			r.src = etag.Wrap(ioutil.HardLimitReader(r.src, size), r.src)
    			r.size = size
    		}
    		if r.actualSize <= 0 && actualSize >= 0 {
    			r.actualSize = actualSize
    		}
    		return r, nil
    	}
    
    	if size >= 0 {
    		r := ioutil.HardLimitReader(src, size)
    		if !disableMD5 {
    			if _, ok := src.(etag.Tagger); !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/object-api-datatypes.go

    		VersionID:                  ri.VersionID,
    		ModTime:                    ri.ModTime,
    		UserTags:                   ri.UserTags,
    		Size:                       ri.Size,
    		ActualSize:                 &ri.ActualSize,
    		ReplicationStatus:          ri.ReplicationStatus,
    		ReplicationStatusInternal:  ri.ReplicationStatusInternal,
    		VersionPurgeStatus:         ri.VersionPurgeStatus,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	if opts.IndexCB != nil {
    		index = opts.IndexCB()
    	}
    
    	actualSize := data.ActualSize()
    	if actualSize < 0 {
    		_, encrypted := crypto.IsEncrypted(fi.Metadata)
    		compressed := fi.IsCompressed()
    		switch {
    		case compressed:
    			// ... nothing changes for compressed stream.
    			// if actualSize is -1 we have no known way to
    			// determine what is the actualSize.
    		case encrypted:
    			decSize, err := sio.DecryptedSize(uint64(n))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    		}
    		if (actualSize == 0) && (actualSize != o.Size) {
    			return -1, errInvalidDecompressedSize
    		}
    		return actualSize, nil
    	}
    	if _, ok := crypto.IsEncrypted(o.UserDefined); ok {
    		sizeStr := o.UserDefined[ReservedMetadataPrefix+"actual-size"]
    		if sizeStr != "" {
    			size, err := strconv.ParseInt(sizeStr, 10, 64)
    			if err != nil {
    				return -1, errObjectTampered
    			}
    			return size, nil
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  5. cmd/object-api-utils_test.go

    					"etag":                         "b3ff3ef3789147152fbfbc50efba4bfd-2",
    				},
    				Parts: []ObjectPartInfo{
    					{
    						Size:       39235668,
    						ActualSize: 67108864,
    					},
    					{
    						Size:       19177372,
    						ActualSize: 32891137,
    					},
    				},
    				Size: 100000001,
    			},
    			result: 100000001,
    		},
    		{
    			objInfo: ObjectInfo{
    				UserDefined: map[string]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. cmd/erasure-metadata_test.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"slices"
    	"strconv"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    )
    
    const ActualSize = 1000
    
    // Test FileInfo.AddObjectPart()
    func TestAddObjectPart(t *testing.T) {
    	testCases := []struct {
    		partNum       int
    		expectedIndex int
    	}{
    		{1, 0},
    		{2, 1},
    		{4, 2},
    		{5, 3},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. cmd/object-api-datatypes_gen.go

    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "ActualSize":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ActualSize = nil
    			} else {
    				if z.ActualSize == nil {
    					z.ActualSize = new(int64)
    				}
    				*z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. cmd/object-multipart-handlers.go

    		forceMD5 = mustGetUUIDBytes()
    	}
    
    	hashReader, err := hash.NewReaderWithOpts(ctx, reader, hash.Options{
    		Size:       size,
    		MD5Hex:     md5hex,
    		SHA256Hex:  sha256hex,
    		ActualSize: actualSize,
    		DisableMD5: false,
    		ForceMD5:   forceMD5,
    	})
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    	// Set the actual size to the compressed/decrypted size if encrypted.
    	actualSize, err := srcInfo.GetActualSize()
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	length := actualSize
    
    	if !cpSrcDstSame {
    		if err := enforceBucketQuotaHard(ctx, dstBucket, actualSize); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v1.go

    	ETag       string            `json:"etag,omitempty" msg:"e"`
    	Number     int               `json:"number" msg:"n"`
    	Size       int64             `json:"size" msg:"s"`        // Size of the part on the disk.
    	ActualSize int64             `json:"actualSize" msg:"as"` // Original size of the part without compression or encryption bytes.
    	ModTime    time.Time         `json:"modTime" msg:"mt"`    // Date and time at which the part was uploaded.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top