- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for srcbuf (0.32 sec)
-
src/cmd/gofmt/gofmt_unix_test.go
initRewrite() const maxWeight = 2 << 20 var buf, errBuf strings.Builder s := newSequencer(maxWeight, &buf, &errBuf) s.Add(fileWeight(fn, info), func(r *reporter) error { return processFile(fn, info, nil, r) }) if s.GetExitCode() == 0 { t.Fatal("rewrite of read-only file succeeded unexpectedly") } if errBuf.Len() > 0 { t.Log(errBuf) } info, err = os.Stat(fn) if err != nil { t.Fatal(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 12:52:14 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/internal/obj/x86/seh.go
"fmt" "math" ) type sehbuf struct { ctxt *obj.Link data []byte off int } func newsehbuf(ctxt *obj.Link, nodes uint8) sehbuf { // - 8 bytes for the header // - 2 bytes for each node // - 2 bytes in case nodes is not even size := 8 + nodes*2 if nodes%2 != 0 { size += 2 } return sehbuf{ctxt, make([]byte, size), 0} } func (b *sehbuf) write8(v uint8) { b.data[b.off] = v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 14:41:10 UTC 2024 - 4.6K bytes - Viewed (0) -
src/encoding/hex/hex_test.go
} dec := NewDecoder(&buf) var decBuf bytes.Buffer w := struct{ io.Writer }{&decBuf} // io.Writer only; not io.ReaderFrom if _, err := io.CopyBuffer(w, dec, make([]byte, 7)); err != nil || decBuf.Len() != len(input) { t.Errorf("decoder.Read(%q*%d) = (%d, %v), want (%d, nil)", test.enc, multiplier, decBuf.Len(), err, len(input)) } if !bytes.Equal(decBuf.Bytes(), input) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:30:23 UTC 2024 - 7.9K bytes - Viewed (0) -
test/linkx_run.go
cmd := exec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymbol"+sep+"neverseen", "linkx.go") var out, errbuf bytes.Buffer cmd.Stdout = &out cmd.Stderr = &errbuf err := cmd.Run() if err != nil { fmt.Println(errbuf.String()) fmt.Println(out.String()) fmt.Println(err) os.Exit(1) } want := "hello\nhello\nhello\ntrumped\ntrumped\ntrumped\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld.go
*/ func addlibpath(ctxt *Link, srcref, objref, file, pkg, shlib string, fingerprint goobj.FingerprintType) *sym.Library { if l := ctxt.LibraryByPkg[pkg]; l != nil { return l } if ctxt.Debugvlog > 1 { ctxt.Logf("addlibpath: srcref: %s objref: %s file: %s pkg: %s shlib: %s fingerprint: %x\n", srcref, objref, file, pkg, shlib, fingerprint) } l := &sym.Library{} ctxt.LibraryByPkg[pkg] = l
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 8K bytes - Viewed (0) -
src/net/rpc/client.go
// concurrently so the implementation of conn should protect against // concurrent reads or concurrent writes. func NewClient(conn io.ReadWriteCloser) *Client { encBuf := bufio.NewWriter(conn) client := &gobClientCodec{conn, gob.NewDecoder(conn), gob.NewEncoder(encBuf), encBuf} return NewClientWithCodec(client) } // NewClientWithCodec is like [NewClient] but uses the specified // codec to encode requests and decode responses.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 9K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
isValid: true, }, } var outBuf bytes.Buffer var errBuf bytes.Buffer for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { k8sClient := kube.NewFakeClient() k8sClient.Kube().Discovery().(*fakediscovery.FakeDiscovery).FakedServerVersion = c.version logger := clog.NewConsoleLogger(&outBuf, &errBuf, nil) IsK8VersionSupported(k8sClient, logger)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 19 02:46:48 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/MultiReader.java
current = it.next().openStream(); } } @Override public int read(char[] cbuf, int off, int len) throws IOException { checkNotNull(cbuf); if (current == null) { return -1; } int result = current.read(cbuf, off, len); if (result == -1) { advance(); return read(cbuf, off, len); } return result; } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/io/MultiReader.java
current = it.next().openStream(); } } @Override public int read(char[] cbuf, int off, int len) throws IOException { checkNotNull(cbuf); if (current == null) { return -1; } int result = current.read(cbuf, off, len); if (result == -1) { advance(); return read(cbuf, off, len); } return result; } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/AppendableWriter.java
} /* * Abstract methods from Writer */ @Override public void write(char[] cbuf, int off, int len) throws IOException { checkNotClosed(); // It turns out that creating a new String is usually as fast, or faster // than wrapping cbuf in a light-weight CharSequence. target.append(new String(cbuf, off, len)); } /*
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 3.4K bytes - Viewed (0)