Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for avail (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/erasure-server-pool.go

    		if zinfo == nil {
    			serverPools[i] = poolAvailableSpace{Index: i}
    			continue
    		}
    		var available uint64
    		if !isMinioMetaBucketName(bucket) {
    			if avail, err := hasSpaceFor(zinfo, size); err != nil || !avail {
    				serverPools[i] = poolAvailableSpace{Index: i}
    				continue
    			}
    		}
    		var maxUsedPct int
    		for _, disk := range zinfo {
    			if disk == nil || disk.Total == 0 {
    				continue
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  7. src/runtime/malloc.go

    	vsize := v + size
    	for voff := v; voff < vsize; voff = voff + chunkBytes {
    		if getg().preempt {
    			// may hold locks, e.g., profiling
    			goschedguarded()
    		}
    		// clear min(avail, lump) bytes
    		n := vsize - voff
    		if n > chunkBytes {
    			n = chunkBytes
    		}
    		memclrNoHeapPointers(unsafe.Pointer(voff), n)
    	}
    }
    
    // implementation of new builtin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	ID          [4]byte
    	Len         int32
    	Bsize       uint64
    	Blocks      uint64
    	Usedspace   uint64
    	Bavail      uint64
    	Flag        uint64
    	Maxfilesize int64
    	_           [16]byte
    	Frsize      uint64
    	Bfree       uint64
    	Files       uint32
    	Ffree       uint32
    	Favail      uint32
    	Namemax31   uint32
    	Invarsec    uint32
    	_           [4]byte
    	Fsid        uint64
    	Namemax     uint64
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/internal/fmtsort/sort.go

    		a, b := aVal.Bool(), bVal.Bool()
    		switch {
    		case a == b:
    			return 0
    		case a:
    			return 1
    		default:
    			return -1
    		}
    	case reflect.Pointer, reflect.UnsafePointer:
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Chan:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Struct:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Cylinders uint16
    	Start     uint64
    }
    
    type Statfs_t struct {
    	Type    int64
    	Bsize   int64
    	Frsize  int64
    	Blocks  uint64
    	Bfree   uint64
    	Files   uint64
    	Ffree   uint64
    	Bavail  uint64
    	Fsid    Fsid
    	Namelen int64
    	Flags   int64
    	Spare   [5]int64
    }
    
    type TpacketHdr struct {
    	Status  uint64
    	Len     uint32
    	Snaplen uint32
    	Mac     uint16
    	Net     uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top