Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 4,308 for gwrite (0.09 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. staging/src/k8s.io/apiserver/pkg/util/flushwriter/writer.go

    type flushWriter struct {
    	flusher http.Flusher
    	writer  io.Writer
    }
    
    // Write is a FlushWriter implementation of the io.Writer that sends any buffered
    // data to the client.
    func (fw *flushWriter) Write(p []byte) (n int, err error) {
    	n, err = fw.writer.Write(p)
    	if err != nil {
    		return
    	}
    	if fw.flusher != nil {
    		fw.flusher.Flush()
    	}
    	return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 16:09:42 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  3. src/compress/zlib/writer.go

    		// after a Reset call.
    		z.compressor, err = flate.NewWriterDict(z.w, z.level, z.dict)
    		if err != nil {
    			return err
    		}
    		z.digest = adler32.New()
    	}
    	return nil
    }
    
    // Write writes a compressed form of p to the underlying io.Writer. The
    // compressed bytes are not necessarily flushed until the Writer is closed or
    // explicitly flushed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K 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. src/image/jpeg/writer.go

    	case *image.Gray:
    		nComponent = 1
    	}
    	// Write the Start Of Image marker.
    	e.buf[0] = 0xff
    	e.buf[1] = 0xd8
    	e.write(e.buf[:2])
    	// Write the quantization tables.
    	e.writeDQT()
    	// Write the image dimensions.
    	e.writeSOF0(b.Size(), nComponent)
    	// Write the Huffman tables.
    	e.writeDHT(nComponent)
    	// Write the image data.
    	e.writeSOS(m)
    	// Write the End Of Image marker.
    	e.buf[0] = 0xff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/internal/buildid/rewrite.go

    			i := bytes.Index(buf[start:tiny+n], idBytes)
    			if i < 0 {
    				break
    			}
    			matches = append(matches, offset+int64(start+i-tiny))
    			h.Write(buf[start : start+i])
    			h.Write(zeros)
    			start += i + len(id)
    		}
    		if n < bufSize {
    			// Did not fill buffer, must be at end of file.
    			h.Write(buf[start : tiny+n])
    			break
    		}
    
    		// Process all but final tiny bytes of buf (bufSize = len(buf)-tiny).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  9. 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)
  10. istioctl/pkg/writer/compare/sds/writer.go

    }
    
    // NewSDSWriter generates a new instance which conforms to SDSWriter interface
    func NewSDSWriter(w io.Writer, format Format) SDSWriter {
    	return &sdsWriter{
    		w:      w,
    		output: format,
    	}
    }
    
    // sdsWriter is provided concrete implementation of SDSWriter
    type sdsWriter struct {
    	w      io.Writer
    	output Format
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 21 14:17:23 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top