Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,150 for writes (0.47 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/io/pipe.go

    // with code expecting an [io.Writer].
    //
    // Reads and Writes on the pipe are matched one to one
    // except when multiple Reads are needed to consume a single Write.
    // That is, each Write to the [PipeWriter] blocks until it has satisfied
    // one or more Reads from the [PipeReader] that fully consume
    // the written data.
    // The data is copied directly from the Write to the corresponding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. src/cmd/dist/buildruntime.go

    	"strings"
    )
    
    /*
     * Helpers for building runtime.
     */
    
    // mkzversion writes zversion.go:
    //
    //	package sys
    //
    // (Nothing right now!)
    func mkzversion(dir, file string) {
    	var buf strings.Builder
    	writeHeader(&buf)
    	fmt.Fprintf(&buf, "package sys\n")
    	writefile(buf.String(), file, writeSkipSame)
    }
    
    // mkbuildcfg writes internal/buildcfg/zbootstrap.go:
    //
    //	package buildcfg
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

            } finally {
                IoActions.closeQuietly(outputStream);
            }
        }
    
        /**
         * Writes {@link java.util.Properties} in a way that the results can be expected to be reproducible.
         *
         * <p>There are a number of differences compared to {@link java.util.Properties#store(java.io.Writer, String)}:</p>
         * <ul>
         *     <li>no timestamp comment is generated at the beginning of the file</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/link/internal/wasm/asm.go

    					continue
    				}
    			}
    			wfn.Write(P[off:])
    		}
    
    		typ := uint32(0)
    		if sig, ok := wasmFuncTypes[ldr.SymName(fn)]; ok {
    			typ = lookupType(sig, &types)
    		}
    
    		name := nameRegexp.ReplaceAllString(ldr.SymName(fn), "_")
    		fns[i] = &wasmFunc{Name: name, Type: typ, Code: wfn.Bytes()}
    	}
    
    	ctxt.Out.Write([]byte{0x00, 0x61, 0x73, 0x6d}) // magic
    	ctxt.Out.Write([]byte{0x01, 0x00, 0x00, 0x00}) // version
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K 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/vendor/golang.org/x/net/route/binary.go

    	_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint16(b[0]) | uint16(b[1])<<8
    }
    
    func (binaryLittleEndian) PutUint16(b []byte, v uint16) {
    	_ = b[1] // early bounds check to guarantee safety of writes below
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    }
    
    func (binaryLittleEndian) Uint32(b []byte) uint32 {
    	_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/testdata/harness.go

    		if err == nil {
    			log.Fatalf("no error from write %d tag %s", i, tag)
    		}
    	}
    }
    
    func postClear() int {
    	return 42
    }
    
    func preClear() int {
    	return 42
    }
    
    // This test is designed to ensure that write errors are properly
    // handled by the code that writes out coverage data. It repeatedly
    // invokes the 'emit to writer' apis using a specially crafted writer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. platforms/software/publish/src/test/groovy/org/gradle/api/publish/internal/metadata/GradleModuleMetadataWriterTest.groovy

                TestUtil.checksumService
            ).writeTo(writer, spec)
        }
    
        def "fails to write file for component with no variants"() {
            def writer = new StringWriter()
            def component = Stub(TestComponent)
            def publication = publication(component, id)
    
            when:
            writeTo(writer, publication, [publication])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 07:21:42 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  10. src/runtime/write_err_android.go

    			dst[writePos] = 0
    			write(writeFD, unsafe.Pointer(&writeBuf[0]), int32(hlen+writePos))
    			clear(dst)
    			writePos = 0
    		}
    	}
    }
    
    func initLegacy() {
    	// In legacy mode, logs are written to /dev/log/main
    	writeFD = uintptr(open(&writePath[0], 0x1 /* O_WRONLY */, 0))
    	if writeFD == 0 {
    		// It is hard to do anything here. Write to stderr just
    		// in case user has root on device and has run
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top