Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RestoreIndexHeaders (0.27 sec)

  1. cmd/object-api-utils.go

    		if isEncrypted {
    			dec, err := decrypt(oi.Parts[firstPartIdx].Index)
    			if err == nil {
    				// Load Index
    				var idx s2.Index
    				_, err := idx.Load(s2.RestoreIndexHeaders(dec))
    
    				// Find compressed/uncompressed offsets of our partskip
    				compOff, uCompOff, err2 := idx.Find(partSkip)
    
    				if err == nil && err2 == nil && compOff > 0 {
    					// Encrypted.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. cmd/object-api-utils_test.go

    				t.Errorf("index returned above threshold")
    			}
    			if tt.wantIdx {
    				if idx == nil {
    					t.Errorf("no index returned")
    				}
    				var index s2.Index
    				_, err = index.Load(s2.RestoreIndexHeaders(idx))
    				if err != nil {
    					t.Errorf("error loading index: %v", err)
    				}
    				t.Log("size:", len(idx))
    				t.Log(string(index.JSON()))
    				if index.TotalUncompressed != int64(len(tt.data)) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top