Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,694 for write0 (0.48 sec)

  1. src/text/tabwriter/tabwriter.go

    type osError struct {
    	err error
    }
    
    func (b *Writer) write0(buf []byte) {
    	n, err := b.output.Write(buf)
    	if n != len(buf) && err == nil {
    		err = io.ErrShortWrite
    	}
    	if err != nil {
    		panic(osError{err})
    	}
    }
    
    func (b *Writer) writeN(src []byte, n int) {
    	for n > len(src) {
    		b.write0(src)
    		n -= len(src)
    	}
    	b.write0(src[0:n])
    }
    
    var (
    	newline = []byte{'\n'}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    // Writer provides sequential writing of a tar archive.
    // [Writer.WriteHeader] begins a new file with the provided [Header],
    // and then Writer can be treated as an io.Writer to supply that file's data.
    type Writer struct {
    	w    io.Writer
    	pad  int64      // Amount of padding to write after current file entry
    	curr fileWriter // Writer for current file entry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/image/gif/writer.go

    			return i
    		}
    	}
    	return -1
    }
    
    // writer is a buffered writer.
    type writer interface {
    	Flush() error
    	io.Writer
    	io.ByteWriter
    }
    
    // encoder encodes an image to the GIF 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/mdo/writer.vm

            this.fileComment = fileComment;
        } //-- void setFileComment(String)
    
        /**
         * Method write.
         *
         * @param writer a writer object
         * @param ${rootLcapName} a ${root.name} object
         * @throws java.io.IOException java.io.IOException if any
         */
        public void write(Writer writer, ${root.name} ${rootLcapName}) throws java.io.IOException {
            XmlSerializer serializer = new MXSerializer();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Sep 14 11:48:15 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go

    		err = w.Close()
    		if err != nil {
    			// we cannot write an error to the writer anymore as the Encode call was successful.
    			utilruntime.HandleError(fmt.Errorf("apiserver was unable to close cleanly the response writer: %v", err))
    		}
    		return
    	}
    
    	// make a best effort to write the object if a failure is detected
    	utilruntime.HandleError(fmt.Errorf("apiserver was unable to write a JSON response: %v", err))
    	status := ErrorToAPIStatus(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/mdo/writer-stax.vm

        } //-- void setStringFormatter(InputLocation.StringFormatter)
    
    #end
        /**
         * Method write.
         *
         * @param writer a writer object
         * @param ${rootLcapName} a ${root.name} object
         * @throws IOException IOException if any
         */
        public void write(Writer writer, ${root.name} ${rootLcapName}) throws IOException, XMLStreamException {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  9. cmd/local-locker_gen.go

    // EncodeMsg implements msgp.Encodable
    func (z *lockRequesterInfo) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 9
    	// write "Name"
    	err = en.Append(0x89, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Name)
    	if err != nil {
    		err = msgp.WrapError(err, "Name")
    		return
    	}
    	// write "Writer"
    	err = en.Append(0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/xml/SimpleXmlWriterSpec.groovy

        def "is a Writer implementation that escapes characters"() {
            when:
            writer.startElement("root")
            writer.write("some <chars>")
            writer.write(" and ".toCharArray())
            writer.write("x some x".toCharArray(), 2, 4)
            writer.write(' ')
            writer.startCDATA()
            writer.write("cdata")
            writer.endCDATA()
            writer.endElement()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 14.1K bytes
    - Viewed (0)
Back to top