Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 147 for Pwritev (0.14 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    	// authentication checks.
    	HTTPServer    func(args *HTTPServerArgs) error
    	HTTPTransport http.RoundTripper
    }
    
    // Writer provides a mechanism to write data under a certain name,
    // typically a filename.
    type Writer interface {
    	Open(name string) (io.WriteCloser, error)
    }
    
    // A FlagSet creates and parses command-line flags.
    // It is similar to the standard flag.FlagSet.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/cmd/pack/pack.go

    	if verbose {
    		fmt.Fprintf(stdout, "%s\n", e.String())
    	} else {
    		fmt.Fprintf(stdout, "%s\n", e.Name)
    	}
    }
    
    // output copies the entry to the specified writer.
    func (ar *Archive) output(e *archive.Entry, w io.Writer) {
    	r := io.NewSectionReader(ar.a.File(), e.Offset, e.Size)
    	n, err := io.Copy(w, r)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if n != e.Size {
    		log.Fatal("short file")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. maven-plugin-api/pom.xml

                </goals>
                <phase>generate-sources</phase>
                <configuration>
                  <templates>
                    <template>reader-stax.vm</template>
                    <template>writer-stax.vm</template>
                  </templates>
                  <params>
                    <param>packageModelV4=org.apache.maven.api.plugin.descriptor.lifecycle</param>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 14:07:09 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	case Raw, List, WebList, Dis, Callgrind:
    		gopt.ObjNames = true
    	}
    
    	return graph.New(rpt.prof, gopt)
    }
    
    // printProto writes the incoming proto via the writer w.
    // If the divide_by option has been specified, samples are scaled appropriately.
    func printProto(w io.Writer, rpt *Report) error {
    	p, o := rpt.prof, rpt.options
    
    	// Apply the sample ratio to all samples before saving the profile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  5. src/io/pipe_test.go

    	. "io"
    	"slices"
    	"strings"
    	"testing"
    	"time"
    )
    
    func checkWrite(t *testing.T, w Writer, data []byte, c chan int) {
    	n, err := w.Write(data)
    	if err != nil {
    		t.Errorf("write: %v", err)
    	}
    	if n != len(data) {
    		t.Errorf("short write: %d != %d", n, len(data))
    	}
    	c <- 0
    }
    
    // Test a single read/write pair.
    func TestPipe1(t *testing.T) {
    	c := make(chan int)
    	r, w := Pipe()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/testng/TestNGOptions.java

                    @Override
                    protected void doExecute(BufferedWriter writer) throws Exception {
                        writer.write("<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\">");
                        writer.newLine();
                        writer.write(suiteXmlMarkup);
                    }
                });
    
                suites.add(buildSuiteXml);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. internal/ringbuffer/ring_buffer_test.go

    			writeRng.Read(buf)
    			// Write
    			n, err := rb.Write(buf[:writeRng.Intn(len(buf))])
    			if err != nil {
    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 1\t", n, wroteBytes)
    
    			// WriteString
    			n, err = rb.WriteString(string(buf[:writeRng.Intn(len(buf))]))
    			if err != nil {
    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/server.go

    	"context"
    	"io"
    
    	"github.com/spf13/cobra"
    
    	"k8s.io/apiextensions-apiserver/pkg/cmd/server/options"
    	genericapiserver "k8s.io/apiserver/pkg/server"
    )
    
    func NewServerCommand(ctx context.Context, out, errOut io.Writer) *cobra.Command {
    	o := options.NewCustomResourceDefinitionsServerOptions(out, errOut)
    
    	cmd := &cobra.Command{
    		Short: "Launch an API extensions API server",
    		Long:  "Launch an API extensions API server",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/internal/trace/version/version.go

    	}
    	if !v.Valid() {
    		return v, fmt.Errorf("unknown or unsupported trace version go 1.%d", v)
    	}
    	return v, nil
    }
    
    // WriteHeader writes a header for a trace version v to w.
    func WriteHeader(w io.Writer, v Version) (int, error) {
    	return fmt.Fprintf(w, headerFmt, v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. operator/pkg/util/progress/progress_test.go

    package progress
    
    import (
    	"bytes"
    	"io"
    	"testing"
    
    	"istio.io/istio/operator/pkg/name"
    )
    
    func TestProgressLog(t *testing.T) {
    	buf := bytes.NewBuffer(nil)
    	testBuf := io.Writer(buf)
    	testWriter = &testBuf
    	expected := ""
    	expect := func(e string) {
    		t.Helper()
    		// In buffer mode we don't overwrite old data, so we are constantly appending to the expected
    		newExpected := expected + "\n" + e
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top