- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 134 for buffers (0.33 sec)
-
src/cmd/go/internal/script/state.go
} // Getwd returns the directory in which to run the next script command. func (s *State) Getwd() string { return s.pwd } // Logf writes output to the script's log without updating its stdout or stderr // buffers. (The output log functions as a kind of meta-stderr.) func (s *State) Logf(format string, args ...any) { fmt.Fprintf(&s.log, format, args...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:02 UTC 2023 - 6.9K bytes - Viewed (0) -
src/bufio/bufio.go
b.n = 0 return nil } // Available returns how many bytes are unused in the buffer. func (b *Writer) Available() int { return len(b.buf) - b.n } // AvailableBuffer returns an empty buffer with b.Available() capacity. // This buffer is intended to be appended to and // passed to an immediately succeeding [Writer.Write] call. // The buffer is only valid until the next write operation on b. func (b *Writer) AvailableBuffer() []byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/README
after substituting variables from the script environment. File1 can be 'stdout' or 'stderr' to compare the script's stdout or stderr buffer. cp src... dst copy files to a target file or directory src can include 'stdout' or 'stderr' to copy from the script's stdout or stderr buffer. echo string... display a line of text env [key[=value]...] set or log the values of environment variables
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 12.5K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
return []int{i + 1} } } return nil } // Cat writes the concatenated contents of the named file(s) to the script's // stdout buffer. func Cat() Cmd { return Command( CmdUsage{ Summary: "concatenate files and print to the script's stdout buffer", Args: "files...", }, func(s *State, args ...string) (WaitFunc, error) { if len(args) == 0 { return nil, ErrUsage }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/go/internal/script/engine.go
// // If the command produces output or can be run in the background, run returns // a WaitFunc that will be called to obtain the result of the command and // update the engine's stdout and stderr buffers. // // Run itself and the returned WaitFunc may inspect and/or modify the State, // but the State's methods must not be called concurrently after Run has // returned. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0) -
src/bufio/bufio_test.go
} if buffered := wr.Buffered(); buffered != wantBuffered { t.Fatalf("Buffered = %v; want %v", buffered, wantBuffered) } } func BenchmarkReaderCopyOptimal(b *testing.B) { // Optimal case is where the underlying reader implements io.WriterTo srcBuf := bytes.NewBuffer(make([]byte, 8192)) src := NewReader(srcBuf) dstBuf := new(bytes.Buffer) dst := onlyWriter{dstBuf}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fail_newline.txt
[short] skip # In package list mode, output is buffered. # Check that a newline is printed after the buffer's contents. cd fail ! go test . ! stderr . stdout '^exitcode=1\n' stdout '^FAIL\s+example/fail' # In local directory mode output is streamed, so we don't know # whether the test printed anything at all, so we print the exit code # (just in case it failed without emitting any output at all),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 04 21:33:23 UTC 2021 - 1.4K bytes - Viewed (0) -
src/bytes/buffer_test.go
// Confirm that when Reader panics, the empty buffer remains empty var buf2 Buffer defer func() { recover() check(t, "TestReadFromPanicReader (2)", &buf2, "") }() buf2.ReadFrom(panicReader{panic: true}) } func TestReadFromNegativeReader(t *testing.T) { var b Buffer defer func() { switch err := recover().(type) { case nil: t.Fatal("bytes.Buffer.ReadFrom didn't panic") case error:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:31:36 UTC 2024 - 18.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/format.go
} buf.WriteByte(']') arg = buf.String() case Object: arg = ObjectString(a, qf) case Type: var buf bytes.Buffer w := newTypeWriter(&buf, qf) w.tpSubscripts = tpSubscripts w.typ(a) arg = buf.String() case []Type: var buf bytes.Buffer w := newTypeWriter(&buf, qf) w.tpSubscripts = tpSubscripts buf.WriteByte('[') for i, x := range a { if i > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/cspropbits_string.go
} const _CSPropBits_name = "CallSiteInLoopCallSiteOnPanicPathCallSiteInInitFunc" var _CSPropBits_index = [...]uint8{0, 14, 33, 51} func (i CSPropBits) String() string { var b bytes.Buffer remain := uint64(i) seen := false for k, v := range _CSPropBits_value { x := _CSPropBits_name[_CSPropBits_index[k]:_CSPropBits_index[k+1]] if v == 0 { if i == 0 { b.WriteString(x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 23:03:03 UTC 2023 - 1.2K bytes - Viewed (0)