- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,364 for writePtr (0.19 sec)
-
src/image/jpeg/writer.go
theHuffmanLUT[i].init(s) } } // writer is a buffered writer. type writer interface { Flush() error io.Writer io.ByteWriter } // encoder encodes an image to the JPEG format. type encoder struct { // w is the writer to write to. err is the first error encountered during // writing. All attempted writes after the first error become no-ops. w writer err error // buf is a scratch buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 17.1K bytes - Viewed (0) -
src/io/io_test.go
for _, tc := range [...]struct { Name string r Reader }{ {"not a WriterTo", Reader(nil)}, {"a WriterTo", struct { Reader WriterTo }{}}, } { nc := NopCloser(tc.r) _, expected := tc.r.(WriterTo) _, got := nc.(WriterTo) if expected != got { t.Errorf("NopCloser incorrectly forwards WriterTo for %s, got %t want %t", tc.Name, got, expected) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/doc.go
// do so because of a mistake in its method signature. // For example, the result of this WriteTo method should be (int64, error), // not error, to satisfy io.WriterTo: // // type myWriterTo struct{...} // func (myWriterTo) WriteTo(w io.Writer) error { ... } // // This check ensures that each method whose name matches one of several
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/hbone/util.go
// if buf is nil, one is allocated. // Duplicated from io // This will prevent stats from working. // If the reader has a WriteTo method, use it to do the copy. // Avoids an allocation and a copy. //if wt, ok := src.(io.WriterTo); ok { // return wt.WriteTo(dst) //} // Similarly, if the writer has a ReadFrom method, use it to do the copy. //if rt, ok := dst.(io.ReaderFrom); ok { // return rt.ReadFrom(src) //} for {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/internal/pgo/serialize.go
// Entries are sorted by "call edge weight", from highest to lowest. const serializationHeader = "GO PREPROFILE V1\n" // WriteTo writes a serialized representation of Profile to w. // // FromSerialized can parse the format back to Profile. // // WriteTo implements io.WriterTo.Write. func (d *Profile) WriteTo(w io.Writer) (int64, error) { bw := bufio.NewWriter(w) var written int64 // Header
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:20:01 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go
"Unwrap": {[]string{}, []string{"error"}}, // errors.Unwrap "WriteByte": {[]string{"byte"}, []string{"error"}}, // jpeg.writer (matching bufio.Writer) "WriteTo": {[]string{"=io.Writer"}, []string{"int64", "error"}}, // io.WriterTo } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.9K bytes - Viewed (0) -
src/io/multi.go
} // MultiWriter creates a writer that duplicates its writes to all the // provided writers, similar to the Unix tee(1) command. // // Each write is written to each listed writer, one at a time. // If a listed writer returns an error, that overall write operation // stops and returns the error; it does not continue down the list. func MultiWriter(writers ...Writer) Writer { allWriters := make([]Writer, 0, len(writers))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 15:49:05 UTC 2022 - 3.3K bytes - Viewed (0) -
src/strings/reader.go
} r.i = abs return abs, nil } // WriteTo implements the [io.WriterTo] interface. func (r *Reader) WriteTo(w io.Writer) (n int64, err error) { r.prevRune = -1 if r.i >= int64(len(r.s)) { return 0, nil } s := r.s[r.i:] m, err := io.WriteString(w, s) if m > len(s) { panic("strings.Reader.WriteTo: invalid WriteString count") } r.i += int64(m) n = int64(m)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:10:31 UTC 2023 - 3.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/xml/XmlTransformer.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 15 08:15:53 UTC 2023 - 13.7K bytes - Viewed (0) -
src/bufio/bufio.go
// size. If the argument io.Writer is already a [Writer] with large enough // size, it returns the underlying [Writer]. func NewWriterSize(w io.Writer, size int) *Writer { // Is it already a Writer? b, ok := w.(*Writer) if ok && len(b.buf) >= size { return b } if size <= 0 { size = defaultBufSize } return &Writer{ buf: make([]byte, size), wr: w, } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0)