Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for writes (0.16 sec)

  1. src/cmd/cgo/out.go

    			})
    		fmt.Fprint(fgo2, ")\n")
    		fmt.Fprint(fgo2, "}\n")
    	}
    
    	fmt.Fprintf(fgcch, "%s", gccExportHeaderEpilog)
    }
    
    // writeExportHeader writes out the start of the _cgo_export.h file.
    func (p *Package) writeExportHeader(fgcch io.Writer) {
    	fmt.Fprintf(fgcch, "/* Code generated by cmd/cgo; DO NOT EDIT. */\n\n")
    	pkg := *importPath
    	if pkg == "" {
    		pkg = p.PackagePath
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/encoding/xml/marshal_test.go

    type limitedBytesWriter struct {
    	w      io.Writer
    	remain int // until writes fail
    }
    
    func (lw *limitedBytesWriter) Write(p []byte) (n int, err error) {
    	if lw.remain <= 0 {
    		println("error")
    		return 0, errors.New("write limit hit")
    	}
    	if len(p) > lw.remain {
    		p = p[:lw.remain]
    		n, _ = lw.w.Write(p)
    		lw.remain = 0
    		return n, errors.New("write limit hit")
    	}
    	n, err = lw.w.Write(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    	}
    	if ctxt.NeedCodeSign() {
    		err := machoCodeSign(ctxt, *flagOutfile)
    		if err != nil {
    			Exitf("%s: code signing failed: %v", os.Args[0], err)
    		}
    	}
    }
    
    // passLongArgsInResponseFile writes the arguments into a file if they
    // are very long.
    func (ctxt *Link) passLongArgsInResponseFile(argv []string, altLinker string) []string {
    	c := 0
    	for _, arg := range argv {
    		c += len(arg)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/crypto/tls/tls_test.go

    	bps int
    }
    
    func (c *slowConn) Write(p []byte) (int, error) {
    	if c.bps == 0 {
    		panic("too slow")
    	}
    	t0 := time.Now()
    	wrote := 0
    	for wrote < len(p) {
    		time.Sleep(100 * time.Microsecond)
    		allowed := int(time.Since(t0).Seconds()*float64(c.bps)) / 8
    		if allowed > len(p) {
    			allowed = len(p)
    		}
    		if wrote < allowed {
    			n, err := c.Conn.Write(p[wrote:allowed])
    			wrote += n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

     * entries may be counted in {@link Cache#size}, but will never be visible to read or write
     * operations.
     *
     * <p>Certain cache configurations will result in the accrual of periodic maintenance tasks which
     * will be performed during write operations, or during occasional read operations in the absence of
     * writes. The {@link Cache#cleanUp} method of the returned cache will also perform maintenance, but
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  6. cmd/xl-storage_test.go

    	reader := bytes.NewReader(data)
    	for {
    		// Using io.Copy instead of this loop will not work for us as io.Copy
    		// will use bytes.Reader.WriteTo() which will not do shardSize'ed writes
    		// causing error.
    		n, err := reader.Read(shard)
    		w.Write(shard[:n])
    		if err == nil {
    			continue
    		}
    		if err == io.EOF {
    			break
    		}
    		t.Fatal(err)
    	}
    	w.(io.Closer).Close()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    				service: tt.service,
    			}
    			h.state.Store(&tt.state)
    
    			err := h.rotateDEKOnKeyIDChange(ctx, tt.statusKeyID, "panda")
    
    			klog.Flush()
    			klog.SetOutput(io.Discard) // prevent further writes into buf
    
    			if diff := cmp.Diff(tt.wantLogs, logLines(buf.String())); len(diff) > 0 {
    				t.Errorf("log mismatch (-want +got):\n%s", diff)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.True(ok)
    	as.Equal(int64(3), val.Value())
    	val, ok = allocatable[v1.ResourceName(resourceName2)]
    	as.True(ok)
    	as.Equal(int64(0), val.Value())
    	as.Empty(removed)
    	// Writes and re-reads checkpoints. Verifies we create a stopped endpoint
    	// for resourceName2, its capacity is set to zero, and we still consider
    	// it as a DevicePlugin resource. This makes sure any pod that was scheduled
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  9. src/runtime/mprof.go

    	semrelease(&goroutineProfile.sema)
    	return n, true
    }
    
    // tryRecordGoroutineProfileWB asserts that write barriers are allowed and calls
    // tryRecordGoroutineProfile.
    //
    //go:yeswritebarrierrec
    func tryRecordGoroutineProfileWB(gp1 *g) {
    	if getg().m.p.ptr() == nil {
    		throw("no P available, write barriers are forbidden")
    	}
    	tryRecordGoroutineProfile(gp1, nil, osyield)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/buildlist.go

    	// rare cases (such as if a dependency splits out a nested module, or merges a
    	// nested module back into a parent module).
    	direct map[string]bool
    
    	graphOnce sync.Once // guards writes to (but not reads from) graph
    	graph     atomic.Pointer[cachedGraph]
    }
    
    // A cachedGraph is a non-nil *ModuleGraph, together with any error discovered
    // while loading that graph.
    type cachedGraph struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top