- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 146 for writeAt (0.12 sec)
-
src/compress/zlib/writer.go
) // A Writer takes data written to it and writes the compressed // form of that data to an underlying writer (see NewWriter). type Writer struct { w io.Writer level int dict []byte compressor *flate.Writer digest hash.Hash32 err error scratch [4]byte wroteHeader bool } // NewWriter creates a new Writer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 27 18:51:27 UTC 2023 - 5.2K bytes - Viewed (0) -
src/encoding/csv/writer.go
w *bufio.Writer } // NewWriter returns a new Writer that writes to w. func NewWriter(w io.Writer) *Writer { return &Writer{ Comma: ',', w: bufio.NewWriter(w), } } // Write writes a single CSV record to w along with any necessary quoting. // A record is a slice of strings with each string being one field. // Writes are buffered, so [Writer.Flush] must eventually be called to ensure
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
src/mime/multipart/writer.go
"errors" "fmt" "io" "net/textproto" "slices" "strings" ) // A Writer generates multipart messages. type Writer struct { w io.Writer boundary string lastpart *part } // NewWriter returns a new multipart [Writer] with a random boundary, // writing to w. func NewWriter(w io.Writer) *Writer { return &Writer{ w: w, boundary: randomBoundary(), } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/link/internal/loong64/asm.go
out.Write64(uint64(r.Xadd)) case objabi.R_LOONG64_TLS_LE_HI: out.Write64(uint64(sectoff)) out.Write64(uint64(elf.R_LARCH_TLS_LE_HI20) | uint64(elfsym)<<32) out.Write64(uint64(r.Xadd)) case objabi.R_CALLLOONG64: out.Write64(uint64(sectoff)) out.Write64(uint64(elf.R_LARCH_B26) | uint64(elfsym)<<32) out.Write64(uint64(r.Xadd)) case objabi.R_LOONG64_TLS_IE_HI: out.Write64(uint64(sectoff))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 17:26:07 UTC 2024 - 7.5K bytes - Viewed (0) -
src/image/png/writer.go
} } // An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks, // including an 8-byte header and 4-byte CRC checksum per Write call. Such calls // should be relatively infrequent, since writeIDATs uses a [bufio.Writer]. // // This method should only be called from writeIDATs (via writeImage). // No other code should treat an encoder as an io.Writer. func (e *encoder) Write(b []byte) (int, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 15.4K bytes - Viewed (0) -
src/net/textproto/writer.go
package textproto import ( "bufio" "fmt" "io" ) // A Writer implements convenience methods for writing // requests or responses to a text protocol network connection. type Writer struct { W *bufio.Writer dot *dotWriter } // NewWriter returns a new [Writer] writing to w. func NewWriter(w *bufio.Writer) *Writer { return &Writer{W: w} } var crnl = []byte{'\r', '\n'}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 2.5K bytes - Viewed (0) -
src/testing/iotest/writer.go
import "io" // TruncateWriter returns a Writer that writes to w // but stops silently after n bytes. func TruncateWriter(w io.Writer, n int64) io.Writer { return &truncateWriter{w, n} } type truncateWriter struct { w io.Writer n int64 } func (t *truncateWriter) Write(p []byte) (n int, err error) { if t.n <= 0 { return len(p), nil } // real write n = len(p) if int64(n) > t.n { n = int(t.n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 674 bytes - Viewed (0) -
src/internal/poll/writev.go
// license that can be found in the LICENSE file. //go:build unix package poll import ( "io" "runtime" "syscall" ) // Writev wraps the writev system call. func (fd *FD) Writev(v *[][]byte) (int64, error) { if err := fd.writeLock(); err != nil { return 0, err } defer fd.writeUnlock() if err := fd.pd.prepareWrite(fd.isFile); err != nil { return 0, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flushwriter/writer.go
limitations under the License. */ package flushwriter import ( "io" "net/http" ) // Wrap wraps an io.Writer into a writer that flushes after every write if // the writer implements the Flusher interface. func Wrap(w io.Writer) io.Writer { fw := &flushWriter{ writer: w, } if flusher, ok := w.(http.Flusher); ok { fw.flusher = flusher } return fw }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 05 16:09:42 UTC 2017 - 1.3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/resource/TextResourceIntegrationTest.groovy
} """ when: run("uriText") then: result.assertTasksExecuted(":uriText") file("output.txt").text == "my config\n" when: run("uriText") then: result.assertTasksSkipped(":uriText") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 6.3K bytes - Viewed (0)