Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,214 for Func (0.04 sec)

  1. src/bytes/iter.go

    func explodeSeq(s []byte) iter.Seq[[]byte] {
    	return func(yield func([]byte) bool) {
    		for len(s) > 0 {
    			_, size := utf8.DecodeRune(s)
    			if !yield(s[:size:size]) {
    				return
    			}
    			s = s[size:]
    		}
    	}
    }
    
    // splitSeq is SplitSeq or SplitAfterSeq, configured by how many
    // bytes of sep to include in the results (none or all).
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:23:13 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. cmd/site-replication-metrics_gen_test.go

    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgRStat(b *testing.B) {
    	v := RStat{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgRStat(b *testing.B) {
    	v := RStat{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. internal/grid/msg_gen_test.go

    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgconnectReq(b *testing.B) {
    	v := connectReq{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgconnectReq(b *testing.B) {
    	v := connectReq{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. cmd/batch-handlers.go

    func (oi ObjectInfo) TraceVersionID() string {
    	return oi.VersionID
    }
    
    func (m *batchJobMetrics) trace(d batchJobMetric, job string, attempts int) func(info objTraceInfoer, err error) {
    	startTime := time.Now()
    	return func(info objTraceInfoer, err error) {
    		duration := time.Since(startTime)
    		if globalTrace.NumSubscribers(madmin.TraceBatch) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  5. cmd/admin-handlers_test.go

    			}
    		}
    	}
    }
    
    type byResourceUID struct{ madmin.LockEntries }
    
    func (b byResourceUID) Less(i, j int) bool {
    	toUniqLock := func(entry madmin.LockEntry) string {
    		return fmt.Sprintf("%s/%s", entry.Resource, entry.ID)
    	}
    	return toUniqLock(b.LockEntries[i]) < toUniqLock(b.LockEntries[j])
    }
    
    func TestTopLockEntries(t *testing.T) {
    	locksHeld := make(map[string][]lockRequesterInfo)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. api/go1.17.txt

    pkg syscall (openbsd-amd64-cgo), const MSG_CMSG_CLOEXEC = 2048
    pkg syscall (openbsd-amd64-cgo), const MSG_CMSG_CLOEXEC ideal-int
    pkg syscall (windows-386), func CreateIoCompletionPort //deprecated
    pkg syscall (windows-386), func GetQueuedCompletionStatus //deprecated
    pkg syscall (windows-386), func PostQueuedCompletionStatus //deprecated
    pkg syscall (windows-386), type SysProcAttr struct, AdditionalInheritedHandles []Handle
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. internal/s3select/json/errors.go

    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errInvalidJSONType(err error) *s3Error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. clause/where.go

    const (
    	AndWithSpace = " AND "
    	OrWithSpace  = " OR "
    )
    
    // Where where clause
    type Where struct {
    	Exprs []Expression
    }
    
    // Name where clause name
    func (where Where) Name() string {
    	return "WHERE"
    }
    
    // Build build where clause
    func (where Where) Build(builder Builder) {
    	if len(where.Exprs) == 1 {
    		if andCondition, ok := where.Exprs[0].(AndConditions); ok {
    			where.Exprs = andCondition.Exprs
    		}
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. cmd/utils_test.go

    			}
    		})
    	}
    }
    
    // Add tests for starting and stopping different profilers.
    func TestStartProfiler(t *testing.T) {
    	_, err := startProfiler("")
    	if err == nil {
    		t.Fatal("Expected a non nil error, but nil error returned for invalid profiler.")
    	}
    }
    
    // checkURL - checks if passed address correspond
    func checkURL(urlStr string) (*url.URL, error) {
    	if urlStr == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    	isDir   bool
    	sys     interface{}
    }
    
    func (f dummyFileInfo) Name() string       { return f.name }
    func (f dummyFileInfo) Size() int64        { return f.size }
    func (f dummyFileInfo) Mode() os.FileMode  { return f.mode }
    func (f dummyFileInfo) ModTime() time.Time { return f.modTime }
    func (f dummyFileInfo) IsDir() bool        { return f.isDir }
    func (f dummyFileInfo) Sys() interface{}   { return f.sys }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top