- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 463 for int64_t (0.09 sec)
-
cmd/batch-job-common-types_gen.go
{ var zb0001 int64 zb0001, err = dc.ReadInt64() if err != nil { err = msgp.WrapError(err) return } (*z) = BatchJobSize(zb0001) } return } // EncodeMsg implements msgp.Encodable func (z BatchJobSize) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteInt64(int64(z)) if err != nil { err = msgp.WrapError(err) return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 21.9K bytes - Viewed (0) -
cmd/data-usage-cache_test.go
) func TestSizeHistogramToMap(t *testing.T) { tests := []struct { sizes []int64 want map[string]uint64 }{ { sizes: []int64{100, 1000, 72_000, 100_000}, want: map[string]uint64{ "LESS_THAN_1024_B": 2, "BETWEEN_64_KB_AND_256_KB": 2, "BETWEEN_1024B_AND_1_MB": 2, }, }, { sizes: []int64{100, 1000, 2000, 100_000, 13 * humanize.MiByte}, want: map[string]uint64{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jan 13 07:51:08 UTC 2024 - 2.6K bytes - Viewed (0) -
internal/ioutil/hardlimitreader.go
func HardLimitReader(r io.Reader, n int64) io.Reader { return &HardLimitedReader{r, n} } // A HardLimitedReader reads from R but limits the amount of // data returned to just N bytes. Each call to Read // updates N to reflect the new amount remaining. // Read returns EOF when N <= 0 or when the underlying R returns EOF. type HardLimitedReader struct { R io.Reader // underlying reader N int64 // max bytes remaining }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat May 06 02:53:12 UTC 2023 - 2K bytes - Viewed (0) -
src/archive/tar/reader_test.go
ops fileOps wantCnt int64 wantErr error } testRemaining struct { // logicalRemaining() == wantLCnt, physicalRemaining() == wantPCnt wantLCnt int64 wantPCnt int64 } testFnc any // testRead | testWriteTo | testRemaining ) type ( makeReg struct { str string size int64 } makeSparse struct { makeReg makeReg
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
src/archive/tar/tar_test.go
f.ops[0] = s[len(b):] } else { f.ops = f.ops[1:] } f.pos += int64(len(b)) return len(b), nil } func (f *testFile) Seek(pos int64, whence int) (int64, error) { if pos == 0 && whence == io.SeekCurrent { return f.pos, nil } if len(f.ops) == 0 { return 0, errors.New("unexpected Seek operation") } s, ok := f.ops[0].(int64) if !ok { return 0, errors.New("unexpected Seek operation") }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
} // Test the predicted part size from the part index func TestGetPartSizeFromIdx(t *testing.T) { // Create test cases testCases := []struct { totalSize int64 partSize int64 partIndex int expectedSize int64 }{ // Total size is zero {0, 10, 1, 0}, // part size 2MiB, total size 4MiB {4 * humanize.MiByte, 2 * humanize.MiByte, 1, 2 * humanize.MiByte},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.6K bytes - Viewed (0) -
cmd/bootstrap-peer-server_gen_test.go
bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } } func BenchmarkUnmarshalServerSystemConfig(b *testing.B) { v := ServerSystemConfig{} bts, _ := v.MarshalMsg(nil) b.ReportAllocs() b.SetBytes(int64(len(bts))) b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 24 21:36:44 UTC 2024 - 2.4K bytes - Viewed (0) -
cmd/bucket-metadata_gen_test.go
bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } } func BenchmarkUnmarshalBucketMetadata(b *testing.B) { v := BucketMetadata{} bts, _ := v.MarshalMsg(nil) b.ReportAllocs() b.SetBytes(int64(len(bts))) b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
cmd/background-newdisks-heal-ops_gen_test.go
bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } } func BenchmarkUnmarshalhealingTracker(b *testing.B) { v := healingTracker{} bts, _ := v.MarshalMsg(nil) b.ReportAllocs() b.SetBytes(int64(len(bts))) b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
tests/create_test.go
t.Fatalf("failed to create from map, got error %v", err) } var idVal int64 _, ok := mapValue1["id"].(uint) if ok { t.Skipf("This test case skipped, because the db supports returning") } idVal, ok = mapValue1["id"].(int64) if !ok { t.Fatal("ret result missing id") } if int64(result1.ID) != idVal { t.Fatal("failed to create data from map with table, @id != id") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0)