Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,266 for write1 (0.86 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/link/internal/ld/pe.go

    		}
    
    		if pe64 != 0 {
    			ctxt.Out.Write64(0)
    		} else {
    			ctxt.Out.Write32(0)
    		}
    	}
    
    	// finally write import descriptor table
    	out := ctxt.Out
    	out.SeekSet(startoff)
    
    	for d := dr; d != nil; d = d.next {
    		out.Write32(uint32(uint64(isect.virtualAddress) + oftbase + d.thunkoff))
    		out.Write32(0)
    		out.Write32(0)
    		out.Write32(uint32(uint64(isect.virtualAddress) + d.nameoff))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  10. src/bufio/bufio.go

    // accepted and all subsequent writes, and [Writer.Flush], will return the error.
    // After all data has been written, the client should call the
    // [Writer.Flush] method to guarantee all data has been forwarded to
    // the underlying [io.Writer].
    type Writer struct {
    	err error
    	buf []byte
    	n   int
    	wr  io.Writer
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top