- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for avail (0.06 sec)
-
internal/ringbuffer/ring_buffer.go
} func (r *RingBuffer) write(p []byte) (n int, err error) { if r.isFull { return 0, ErrIsFull } var avail int if r.w >= r.r { avail = r.size - r.w + r.r } else { avail = r.r - r.w } if len(p) > avail { err = ErrTooMuchDataToWrite p = p[:avail] } n = len(p) if r.w >= r.r { c1 := r.size - r.w if c1 >= n { copy(r.buf[r.w:], p) r.w += n
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js
function fitText(t, avail, textList) { // Find first entry in textList that fits. let width = avail; textContext.font = FONT_SIZE + 'pt Arial'; for (let i = 0; i < textList.length; i++) { let text = textList[i]; width = textContext.measureText(text).width; if (width <= avail) { t.innerText = text; return; } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 18.5K bytes - Viewed (0) -
src/runtime/mgcscavenge_test.go
// Set up the scavenger. var s Scavenger s.Sleep = func(ns int64) int64 { totalSlept.Add(ns) return ns } s.Scavenge = func(bytes uintptr) (uintptr, int64) { avail := availableWork.Load() if uint64(bytes) > avail { bytes = uintptr(avail) } t := workedTime(bytes) if bytes != 0 { availableWork.Add(-int64(bytes)) totalWorked.Add(t) } return bytes, t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/html.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 34.8K bytes - Viewed (0) -
src/bufio/bufio.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
rt.name, rt.expectedError, (output != nil), ) } } } func TestFileAvailableCheck(t *testing.T) { f, err := os.CreateTemp("", "file-avail-check") if err != nil { t.Fatalf("Failed to create file: %v", err) } defer utiltesting.CloseAndRemove(t, f) var tests = []struct { name string check FileAvailableCheck
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0) -
src/runtime/stack.go
// current stack. The currently used stack includes everything // down to the SP plus the stack guard space that ensures // there's room for nosplit functions. avail := gp.stack.hi - gp.stack.lo if used := gp.stack.hi - gp.sched.sp + stackNosplit; used >= avail/4 { return } if stackDebug > 0 { print("shrinking stack ", oldsize, "->", newsize, "\n") } copystack(gp, newsize) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0) -
src/net/http/h2_bundle.go
// It reports whether both windows have available capacity. func http2takeInflows(f1, f2 *http2inflow, n uint32) bool { if n > uint32(f1.avail) || n > uint32(f2.avail) { return false } f1.avail -= int32(n) f2.avail -= int32(n) return true } // outflow is the outbound flow control window's size. type http2outflow struct { _ http2incomparable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
{70, "ESTALE", "stale NFS file handle"}, {71, "EREMOTE", "too many levels of remote in path"}, {72, "EBADRPC", "RPC struct is bad"}, {73, "ERPCMISMATCH", "RPC version wrong"}, {74, "EPROGUNAVAIL", "RPC prog. not avail"}, {75, "EPROGMISMATCH", "program version wrong"}, {76, "EPROCUNAVAIL", "bad procedure for program"}, {77, "ENOLCK", "no locks available"}, {78, "ENOSYS", "function not implemented"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 87.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
{70, "ESTALE", "stale NFS file handle"}, {71, "EREMOTE", "too many levels of remote in path"}, {72, "EBADRPC", "RPC struct is bad"}, {73, "ERPCMISMATCH", "RPC version wrong"}, {74, "EPROGUNAVAIL", "RPC prog. not avail"}, {75, "EPROGMISMATCH", "program version wrong"}, {76, "EPROCUNAVAIL", "bad procedure for program"}, {77, "ENOLCK", "no locks available"}, {78, "ENOSYS", "function not implemented"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 72.8K bytes - Viewed (0)