- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 467 for Uint64 (0.08 sec)
-
internal/crypto/key_test.go
package crypto import ( "bytes" "crypto/rand" "encoding/hex" "io" "testing" "github.com/minio/minio/internal/logger" ) var shortRandom = func(limit int64) io.Reader { return io.LimitReader(rand.Reader, limit) } func recoverTest(i int, shouldPass bool, t *testing.T) { if err := recover(); err == nil && !shouldPass { t.Errorf("Test %d should fail but passed successfully", i)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/debugging/inspect/export.go
if e != nil { return nil, e } buf = bytes.NewBuffer(b) } return buf.Bytes(), nil } fmt.Println("{") hasWritten := false var r io.Reader var sz int64 f, e := os.Open(downloadPath) if e != nil { return e } if st, e := f.Stat(); e == nil { sz = st.Size() } defer f.Close() r = f zr, e := zip.NewReader(r.(io.ReaderAt), sz)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Nov 08 15:58:02 UTC 2022 - 9.1K bytes - Viewed (0) -
internal/s3select/json/record.go
for _, kv := range r.KVS { var columnValue string switch val := kv.Value.(type) { case float64: columnValue = jsonFloat(val) case string: columnValue = val case bool, int64: columnValue = fmt.Sprintf("%v", val) case nil: columnValue = "" case RawJSON: columnValue = string([]byte(val)) case []interface{}: b, err := json.Marshal(val) if err != nil {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/api-headers.go
continue } w.Header()[strings.ToLower(k)] = []string{v} isSet = true break } if !isSet { w.Header().Set(k, v) } } var start, rangeLen int64 totalObjectSize, err := objInfo.GetActualSize() if err != nil { return err } if rs == nil && opts.PartNumber > 0 { rs = partNumberToRangeSpec(objInfo, opts.PartNumber) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue May 28 04:44:00 UTC 2024 - 7K bytes - Viewed (0) -
tests/preload_suits_test.go
} levelB1 := &LevelB1{Value: "foo"} if err := DB.Create(levelB1).Error; err != nil { t.Error(err) } levelB3 := &LevelB3{ Value: "bar", LevelB1ID: sql.NullInt64{Valid: true, Int64: int64(levelB1.ID)}, LevelB2s: []*LevelB2{}, } if err := DB.Create(levelB3).Error; err != nil { t.Error(err) } levelB1.LevelB3s = []*LevelB3{levelB3} want := []*LevelB1{levelB1}
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Fri Mar 18 05:38:46 UTC 2022 - 30.3K bytes - Viewed (0) -
internal/bucket/lifecycle/filter_test.go
} fiLtAndGt := Filter{ And: And{ ObjectSizeGreaterThan: 1 * humanize.MiByte, ObjectSizeLessThan: 100 * humanize.MiByte, }, } tests := []struct { filter Filter objSize int64 want bool }{ { filter: fiLt, objSize: 101 * humanize.MiByte, want: false, }, { filter: fiLt, objSize: 99 * humanize.MiByte, want: true, },
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Feb 27 00:01:20 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/utils.go
globalMaxPartID = 10000 ) // isMaxObjectSize - verify if max object size func isMaxObjectSize(size int64) bool { return size > globalMaxObjectSize } // Check if part size is more than or equal to minimum allowed size. func isMinAllowedPartSize(size int64) bool { return size >= globalMinPartSize } // isMaxPartNumber - Check if part ID is greater than the maximum allowed ID.
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 31.9K bytes - Viewed (0) -
cmd/http-tracer.go
t := madmin.TraceInfo{ TraceType: tt, FuncName: funcName, NodeName: nodeName, Time: reqStartTime, Duration: reqEndTime.Sub(respRecorder.StartTime), Path: reqPath, Bytes: int64(inputBytes + respRecorder.Size()), HTTP: &madmin.TraceHTTPStats{ ReqInfo: madmin.TraceRequestInfo{ Time: reqStartTime, Proto: r.Proto, Method: r.Method,
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 6K bytes - Viewed (0) -
cmd/storage-rest-server.go
if err != nil { return err } length := binary.LittleEndian.Uint32(tmp[:]) n, err := io.CopyBuffer(w, io.LimitReader(respBody, int64(length)), buf) if err != nil { return err } if n != int64(length) { return io.ErrUnexpectedEOF } continue case 32: continue default: return fmt.Errorf("unexpected filler byte: %d", tmp[0])
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0) -
internal/crypto/sse.go
} // DecryptSinglePart decrypts an io.Writer which must an object // uploaded with the single-part PUT API. The offset and length // specify the requested range. func DecryptSinglePart(w io.Writer, offset, length int64, key ObjectKey) io.WriteCloser { const PayloadSize = 1 << 16 // DARE 2.0 w = ioutil.LimitedWriter(w, offset%PayloadSize, length)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Aug 30 15:26:43 UTC 2022 - 4.4K bytes - Viewed (0)