- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for srcbuf (0.12 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/link/internal/ld/outbuf.go
func (out *OutBuf) Write16(v uint16) { out.arch.ByteOrder.PutUint16(out.encbuf[:], v) out.Write(out.encbuf[:2]) } func (out *OutBuf) Write32(v uint32) { out.arch.ByteOrder.PutUint32(out.encbuf[:], v) out.Write(out.encbuf[:4]) } func (out *OutBuf) Write32b(v uint32) { binary.BigEndian.PutUint32(out.encbuf[:], v) out.Write(out.encbuf[:4]) } func (out *OutBuf) Write64(v uint64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K 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) -
src/syscall/asm_plan9_amd64.s
SYSCALL MOVQ AX, r1+32(FP) MOVQ $0, r2+40(FP) CMPL AX, $-1 JNE ok3 LEAQ errbuf-128(SP), AX MOVQ AX, sysargs-160(SP) MOVQ $128, sysargs1-152(SP) MOVQ $SYS_ERRSTR, BP SYSCALL CALL runtime·exitsyscall(SB) // call via ABI wrapper, ensuring ABIInternal fixed registers are set MOVQ sysargs-160(SP), AX MOVQ AX, errbuf-168(SP) CALL runtime·gostring(SB) LEAQ str-160(SP), SI JMP copyresult3 ok3:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 01:29:17 UTC 2022 - 3.4K 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/gofmt/gofmt_test.go
} } initParserMode() initRewrite() const maxWeight = 2 << 20 var buf, errBuf bytes.Buffer s := newSequencer(maxWeight, &buf, &errBuf) s.Add(fileWeight(in, info), func(r *reporter) error { return processFile(in, info, nil, r) }) if errBuf.Len() > 0 { t.Logf("%q", errBuf.Bytes()) } if s.GetExitCode() != 0 { t.Fail() } expected, err := os.ReadFile(out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K 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) -
docs/debugging/s3-verify/main.go
tgtCtnt, tgtOk := nextObject(tgtCh) var srcEOF, tgtEOF bool srcSha256 := sha256.New() tgtSha256 := sha256.New() for { srcSha256.Reset() tgtSha256.Reset() srcEOF = !srcOk tgtEOF = !tgtOk // No objects from source AND target: Finish if srcEOF && tgtEOF { break } if !srcEOF && srcCtnt.Err != nil { log.Fatal(srcCtnt.Err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 22 15:12:47 UTC 2022 - 8.4K 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)