- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for actualSize (0.15 sec)
-
internal/hash/reader_test.go
} if r.Size() != 4 { t.Errorf("Expected size 4, got %d", r.Size()) } if r.ActualSize() != 4 { t.Errorf("Expected size 4, got %d", r.ActualSize()) } expectedMD5, err := hex.DecodeString("e2fc714c4727ee9395f324cd2e7f331f") if err != nil { t.Fatal(err) } if !bytes.Equal(r.MD5Current(), expectedMD5) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
cmd/object-api-utils_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
var buf bytes.Buffer...
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 9.4K bytes - Viewed (0) -
cmd/bucket-replication-utils_test.go
for i, test := range replicatedInfosTests { rinfos := replicatedInfos{ Targets: test.tgtInfos, } if actualSize := rinfos.CompletedSize(); actualSize != test.expectedCompletedSize { t.Errorf("Test%d (%s): Size got %d , want %d", i+1, test.name, actualSize, test.expectedCompletedSize) } if repStatusStr := rinfos.ReplicationStatusInternal(); repStatusStr != test.expectedReplicationStatusInternal {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 08 20:27:40 UTC 2023 - 9.3K bytes - Viewed (0) -
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) -
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)