Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for write (0.18 sec)

  1. src/archive/zip/writer.go

    // for the file metadata. [Writer] takes ownership of fh and may mutate
    // its fields. The caller must not modify fh after calling [Writer.CreateHeader].
    //
    // This returns a [Writer] to which the file contents should be written.
    // The file's contents must be written to the io.Writer before the next
    // call to [Writer.Create], [Writer.CreateHeader], [Writer.CreateRaw], or [Writer.Close].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    // executes at least one write operation if it is closed.
    //
    // This can be useful within the context of HTTP. At least
    // one write operation must happen to send the HTTP headers
    // to the peer.
    type WriteOnCloser struct {
    	io.Writer
    	hasWritten bool
    }
    
    func (w *WriteOnCloser) Write(p []byte) (int, error) {
    	w.hasWritten = true
    	return w.Writer.Write(p)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer's settings were read and applied.
        assertThat(connection.peerSettings.headerTableSize).isEqualTo(0)
        val writer = connection.writer
        assertThat(writer.hpackWriter.dynamicTableByteCount).isEqualTo(0)
        assertThat(writer.hpackWriter.headerTableSizeSetting).isEqualTo(0)
      }
    
      @Test fun peerHttp2ClientDisablesPush() {
        val client = false // Peer is client, so we are server.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    		var b Buffer
    		b.Write(buf[0:1])
    		for i := 0; i < 5<<10; i++ {
    			b.Write(buf)
    			b.Read(buf)
    		}
    	}
    }
    
    // Check that we don't compact too often. From Issue 5154.
    func BenchmarkBufferFullSmallReads(b *testing.B) {
    	buf := make([]byte, 1024)
    	for i := 0; i < b.N; i++ {
    		var b Buffer
    		b.Write(buf)
    		for b.Len()+20 < b.Cap() {
    			b.Write(buf[:10])
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    	return nil
    }
    
    func (c *ConfigWriter) PrintFullSummary() error {
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintWorkloadSummary(WorkloadFilter{Verbose: true}); err != nil {
    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintServiceSummary(ServiceFilter{}); err != nil {
    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintPolicySummary(PolicyFilter{}); err != nil {
    		return err
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. cmd/storage-datatypes_gen.go

    // EncodeMsg implements msgp.Encodable
    func (z *CheckPartsHandlerParams) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 4
    	// write "id"
    	err = en.Append(0x84, 0xa2, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.DiskID)
    	if err != nil {
    		err = msgp.WrapError(err, "DiskID")
    		return
    	}
    	// write "v"
    	err = en.Append(0xa1, 0x76)
    	if err != nil {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 127.5K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

            }
            try {
                if (writer != null) {
                    new MavenStaxWriter().write(writer, content);
                } else if (outputStream != null) {
                    new MavenStaxWriter().write(outputStream, content);
                } else {
                    try (OutputStream os = Files.newOutputStream(path)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. cmd/storage-rest-server.go

    				// concurrently, check for it before we
    				// write the filler byte.
    				select {
    				case err := <-doneCh:
    					if err != nil {
    						write([]byte{1})
    						write([]byte(err.Error()))
    					} else {
    						write([]byte{0})
    					}
    					return
    				default:
    				}
    
    				// Response not ready, write a filler byte.
    				write([]byte{32})
    				if canWrite {
    					w.(http.Flusher).Flush()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  9. cmd/metrics-v3-system-process.go

    	processLocksWriteTotal          = "locks_write_total"
    	processCPUTotalSeconds          = "cpu_total_seconds"
    	processGoRoutineTotal           = "go_routine_total"
    	processIORCharBytes             = "io_rchar_bytes"
    	processIOReadBytes              = "io_read_bytes"
    	processIOWCharBytes             = "io_wchar_bytes"
    	processIOWriteBytes             = "io_write_bytes"
    	processStartTimeSeconds         = "start_time_seconds"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. configure.py

        if e.errno == errno.EEXIST:
          os.remove(link_name)
          os.symlink(target, link_name)
        else:
          raise e
    
    
    def write_to_bazelrc(line):
      with open(_TF_BAZELRC, 'a') as f:
        f.write(line + '\n')
    
    
    def write_action_env_to_bazelrc(var_name, var):
      write_to_bazelrc('build --action_env {}="{}"'.format(var_name, str(var)))
    
    
    def run_shell(cmd, allow_non_zero=False, stderr=None):
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top