Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 372 for write1 (0.14 sec)

  1. src/runtime/time_fake.go

    	return faketime / 1e9, int32(faketime % 1e9), faketime
    }
    
    // write is like the Unix write system call.
    // We have to avoid write barriers to avoid potential deadlock
    // on write calls.
    //
    //go:nowritebarrierrec
    func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	if !(fd == 1 || fd == 2) {
    		// Do an ordinary write.
    		return write1(fd, p, n)
    	}
    
    	// Write with the playback header.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:15:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/time_nofake.go

    //
    //go:linkname overrideWrite
    var overrideWrite func(fd uintptr, p unsafe.Pointer, n int32) int32
    
    // write must be nosplit on Windows (see write1)
    //
    //go:nosplit
    func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	if overrideWrite != nil {
    		return overrideWrite(fd, noescape(p), n)
    	}
    	return write1(fd, p, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/compress/lzw/writer.go

    	invalidEntry = 0
    )
    
    // Writer is an LZW compressor. It writes the compressed form of the data
    // to an underlying writer (see [NewWriter]).
    type Writer struct {
    	// w is the writer that compressed bytes are written to.
    	w writer
    	// litWidth is the width in bits of literal codes.
    	litWidth uint
    	// order, write, bits, nBits and width are the state for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. src/internal/trace/raw/writer.go

    // NewWriter creates a new byte format writer.
    func NewWriter(w io.Writer, v version.Version) (*Writer, error) {
    	_, err := version.WriteHeader(w, v)
    	return &Writer{w: w, v: v, specs: v.Specs()}, err
    }
    
    // WriteEvent writes a single event to the trace wire format stream.
    func (w *Writer) WriteEvent(e Event) error {
    	// Check version.
    	if e.Version != w.v {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. 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)
  6. src/compress/gzip/gzip.go

    }
    
    // NewWriter returns a new [Writer].
    // Writes to the returned writer are compressed and written to w.
    //
    // It is the caller's responsibility to call Close on the [Writer] when done.
    // Writes may be buffered and not flushed until Close.
    //
    // Callers that wish to set the fields in Writer.Header must do so before
    // the first call to Write, Flush, or Close.
    func NewWriter(w io.Writer) *Writer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. internal/logger/logrotate.go

    	return w.pw.Write(p)
    }
    
    // Close closes the writer.
    // Any accepted writes will be flushed. Any new writes will be rejected.
    // Once Close() exits, files are synchronized to disk.
    func (w *Writer) Close() error {
    	w.pw.CloseWithError(nil)
    
    	if w.f != nil {
    		if err := w.closeCurrentFile(); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/runtime/coverage/coverage.go

    }
    
    // WriteCounters writes coverage counter-data content for the
    // currently running program to the writer 'w'. An error will be
    // returned if the operation can't be completed successfully (for
    // example, if the currently running program was not built with
    // "-cover", or if a write fails). The counter data written will be a
    // snapshot taken at the point of the invocation.
    func WriteCounters(w io.Writer) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. cmd/erasure-encode.go

    import (
    	"context"
    	"fmt"
    	"io"
    )
    
    // Writes to multiple writers
    type multiWriter struct {
    	writers     []io.Writer
    	writeQuorum int
    	errs        []error
    }
    
    // Write writes data to writers.
    func (p *multiWriter) Write(ctx context.Context, blocks [][]byte) error {
    	for i := range p.writers {
    		if p.errs[i] != nil {
    			continue
    		}
    		if p.writers[i] == nil {
    			p.errs[i] = errDiskNotFound
    			continue
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/HtmlReportWriter.kt

    import java.io.Writer
    
    
    /**
     * Writes the configuration cache html report.
     *
     * The report is laid out in such a way as to allow extracting the pure JSON model
     * by looking for the `// begin-report-data` and `// end-report-data` markers.
     */
    internal
    class HtmlReportWriter(val writer: Writer) {
    
        private
        val jsonModelWriter = JsonModelWriter(writer)
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top