- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for actualSize (0.05 sec)
-
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 Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jun 25 15:08:54 UTC 2025 - 11.8K bytes - Viewed (0) -
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 Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 10.2K 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 Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
*/ @Test void testGetInitialSize() { long expectedSize = 1024L; when(smbFileHandle.getInitialSize()).thenReturn(expectedSize); long actualSize = smbFileHandle.getInitialSize(); assertEquals(expectedSize, actualSize, "getInitialSize should return the correct initial file size."); verify(smbFileHandle, times(1)).getInitialSize(); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K 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 Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jun 25 15:08:54 UTC 2025 - 37.3K 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 Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:31 UTC 2025 - 47.1K bytes - Viewed (0) -
cmd/object-api-utils_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 24.1K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
var buf bytes.Buffer...
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.1K 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 Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 9.3K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "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 Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 13.4K bytes - Viewed (0)