Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 80 for pwritev (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/internal/modindex/write.go

    func (e *encoder) Int(n int) {
    	if n < 0 || int(int32(n)) != n {
    		base.Fatalf("go: attempting to write an int to the index that overflows int32")
    	}
    	e.Uint32(uint32(n))
    }
    
    func (e *encoder) IntAt(n int, at int) {
    	if n < 0 || int(int32(n)) != n {
    		base.Fatalf("go: attempting to write an int to the index that overflows int32")
    	}
    	binary.LittleEndian.PutUint32(e.b[at:], uint32(n))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. src/internal/poll/fd_writev_libc.go

    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || (openbsd && !mips64) || solaris
    
    package poll
    
    import (
    	"syscall"
    	_ "unsafe" // for go:linkname
    )
    
    //go:linkname writev syscall.writev
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 16:48:38 UTC 2022
    - 386 bytes
    - Viewed (0)
  8. src/net/writev_unix.go

    	}
    	n, err := c.fd.writeBuffers(v)
    	if err != nil {
    		return n, &OpError{Op: "writev", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	return n, nil
    }
    
    func (fd *netFD) writeBuffers(v *Buffers) (n int64, err error) {
    	n, err = fd.pfd.Writev((*[][]byte)(v))
    	runtime.KeepAlive(fd)
    	return n, wrapSyscallError("writev", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 16:48:35 UTC 2022
    - 666 bytes
    - Viewed (0)
  9. src/archive/tar/testdata/writer-big.tar

    Joe Tsai <******@****.***> 1503528984 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 01:35:39 UTC 2017
    - 512 bytes
    - Viewed (0)
  10. src/syscall/syscall_openbsd.go

    //sys	Truncate(path string, length int64) (err error)
    //sys	Umask(newmask int) (oldmask int)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (n uintptr, err error)
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top