- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for flush (0.16 sec)
-
src/bufio/bufio_test.go
str := strings.Repeat("x", 1<<10) bs := []byte(str) for i := 0; i < b.N; i++ { bw := NewWriter(io.Discard) bw.Flush() bw.WriteByte('a') bw.Flush() bw.WriteRune('B') bw.Flush() bw.Write(bs) bw.Flush() bw.WriteString(str) bw.Flush() } } func BenchmarkWriterFlush(b *testing.B) { b.ReportAllocs() bw := NewWriter(io.Discard)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0) -
src/bufio/example_test.go
fmt.Fprint(w, "Hello, ") fmt.Fprint(w, "world!") w.Flush() // Don't forget to flush! // Output: Hello, world! } func ExampleWriter_AvailableBuffer() { w := bufio.NewWriter(os.Stdout) for _, i := range []int64{1, 2, 3, 4} { b := w.AvailableBuffer() b = strconv.AppendInt(b, i, 10) b = append(b, ' ') w.Write(b) } w.Flush() // Output: 1 2 3 4 }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0) -
src/archive/tar/writer.go
io.Writer fileState ReadFrom(io.Reader) (int64, error) } // Flush finishes writing the current file's block padding. // The current file must be fully written before Flush can be called. // // This is unnecessary as the next call to [Writer.WriteHeader] or [Writer.Close] // will implicitly flush out the file's padding. func (tw *Writer) Flush() error { if tw.err != nil { return tw.err }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 19.6K bytes - Viewed (0) -
src/archive/zip/register.go
package zip import ( "compress/flate" "errors" "io" "sync" ) // A Compressor returns a new compressing writer, writing to w. // The WriteCloser's Close method must be used to flush pending data to w. // The Compressor itself must be safe to invoke from multiple goroutines // simultaneously, but each returned writer will be used only by // one goroutine at a time.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 3.7K bytes - Viewed (0) -
src/cmd/asm/main.go
// the same list with -gcflags=-spectre=LIST and -asmflags=-spectrre=LIST case "all", "ret": ctxt.Retpoline = true } ctxt.Bso = bufio.NewWriter(os.Stdout) defer ctxt.Bso.Flush() architecture.Init(ctxt) // Create object file, write header. buf, err := bio.Create(*flags.OutputFile) if err != nil { log.Fatal(err) } defer buf.Close() if !*flags.SymABIs {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 2.7K bytes - Viewed (0) -
src/archive/zip/writer_test.go
if err != nil { t.Fatal(err) } if buf.Len() > 0 { t.Fatalf("Unexpected %d bytes already in buffer", buf.Len()) } if err := w.Flush(); err != nil { t.Fatal(err) } if buf.Len() == 0 { t.Fatal("No bytes written after Flush") } } func TestWriterDir(t *testing.T) { w := NewWriter(io.Discard) dw, err := w.Create("dir/") if err != nil { t.Fatal(err) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0) -
src/cmd/cgo/doc.go
//go:cgo_import_dynamic __libc_start_main __libc_start_main#GLIBC_2.2.5 "libc.so.6" //go:cgo_import_dynamic stdout stdout#GLIBC_2.2.5 "libc.so.6" //go:cgo_import_dynamic fflush fflush#GLIBC_2.2.5 "libc.so.6" //go:cgo_import_dynamic _ _ "libpthread.so.0" //go:cgo_import_dynamic _ _ "libc.so.6" In the end, the compiled Go package, which will eventually be
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), const BPF_X ideal-int pkg syscall (netbsd-arm64-cgo), const BRKINT = 2 pkg syscall (netbsd-arm64-cgo), const BRKINT ideal-int pkg syscall (netbsd-arm64-cgo), const CFLUSH = 15 pkg syscall (netbsd-arm64-cgo), const CFLUSH ideal-int pkg syscall (netbsd-arm64-cgo), const CLOCAL = 32768 pkg syscall (netbsd-arm64-cgo), const CLOCAL ideal-int pkg syscall (netbsd-arm64-cgo), const CLONE_CSIGNAL = 255
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Viewed (0) -
api/go1.16.txt
pkg syscall (darwin-arm64), const F_DUPFD_CLOEXEC ideal-int pkg syscall (darwin-arm64), const F_FINDSIGS = 78 pkg syscall (darwin-arm64), const F_FINDSIGS ideal-int pkg syscall (darwin-arm64), const F_FLUSH_DATA = 40 pkg syscall (darwin-arm64), const F_FLUSH_DATA ideal-int pkg syscall (darwin-arm64), const F_FREEZE_FS = 53 pkg syscall (darwin-arm64), const F_FREEZE_FS ideal-int pkg syscall (darwin-arm64), const F_FULLFSYNC = 51
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Dec 02 16:30:41 GMT 2022 - 479.2K bytes - Viewed (0) -
api/go1.14.txt
pkg syscall (freebsd-arm64), const IP_DUMMYNET_DEL = 61 pkg syscall (freebsd-arm64), const IP_DUMMYNET_DEL ideal-int pkg syscall (freebsd-arm64), const IP_DUMMYNET_FLUSH = 62 pkg syscall (freebsd-arm64), const IP_DUMMYNET_FLUSH ideal-int pkg syscall (freebsd-arm64), const IP_DUMMYNET_GET = 64 pkg syscall (freebsd-arm64), const IP_DUMMYNET_GET ideal-int pkg syscall (freebsd-arm64), const IP_DUMMYNET3 = 49
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 508.9K bytes - Viewed (0)