Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,609 for writeLn (0.1 sec)

  1. cmd/site-replication-metrics_gen.go

    }
    
    // EncodeMsg implements msgp.Encodable
    func (z RStat) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 2
    	// write "Count"
    	err = en.Append(0x82, 0xa5, 0x43, 0x6f, 0x75, 0x6e, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Count)
    	if err != nil {
    		err = msgp.WrapError(err, "Count")
    		return
    	}
    	// write "Bytes"
    	err = en.Append(0xa5, 0x42, 0x79, 0x74, 0x65, 0x73)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  2. src/archive/tar/fuzz_test.go

    		Name: "lorem.txt",
    		Mode: 0600,
    		Size: int64(len(inp)),
    	})
    	if err != nil {
    		f.Fatalf("failed to create writer: %s", err)
    	}
    	_, err = w.Write(inp)
    	if err != nil {
    		f.Fatalf("failed to write file to archive: %s", err)
    	}
    	if err := w.Close(); err != nil {
    		f.Fatalf("failed to write archive: %s", err)
    	}
    	f.Add(b.Bytes())
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r := NewReader(bytes.NewReader(b))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertFailsWith<IllegalStateException> {
          abort()
        }
      }
    
      private fun Editor.setString(
        index: Int,
        value: String,
      ) {
        newSink(index).buffer().use { writer ->
          writer.writeUtf8(value)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  4. cmd/background-newdisks-heal-ops_gen.go

    		return
    	}
    	err = en.WriteInt(z.PoolIndex)
    	if err != nil {
    		err = msgp.WrapError(err, "PoolIndex")
    		return
    	}
    	// write "SetIndex"
    	err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.SetIndex)
    	if err != nil {
    		err = msgp.WrapError(err, "SetIndex")
    		return
    	}
    	// write "DiskIndex"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 15:42:49 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. 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()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  6. cmd/metrics-v3-system-drive.go

    		allDriveLabels...)
    	driveWritesPerSecMD = NewGaugeMD(driveWritesPerSec,
    		"Writes per second on a drive",
    		allDriveLabels...)
    	driveWritesKBPerSecMD = NewGaugeMD(driveWritesKBPerSec,
    		"Kilobytes written per second on a drive",
    		allDriveLabels...)
    	driveWritesAwaitMD = NewGaugeMD(driveWritesAwait,
    		"Average time for write requests served on a drive",
    		allDriveLabels...)
    	drivePercUtilMD = NewGaugeMD(drivePercUtil,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 12 17:23:50 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Serialization.java

          Multiset<E> multiset, ObjectOutputStream stream) throws IOException {
        int entryCount = multiset.entrySet().size();
        stream.writeInt(entryCount);
        for (Multiset.Entry<E> entry : multiset.entrySet()) {
          stream.writeObject(entry.getElement());
          stream.writeInt(entry.getCount());
        }
      }
    
      /**
       * Populates a multiset by reading an input stream, as part of deserialization. See {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. internal/ioutil/discard.go

    // implementation which is buggy on NUMA systems, we have to use a simpler
    // io.Writer implementation alone avoids also unnecessary buffer copies,
    // and as such incurred latencies.
    var Discard io.Writer = discard{}
    
    // discard is /dev/null for Golang.
    type discard struct{}
    
    func (discard) Write(p []byte) (int, error) {
    	return len(p), nil
    }
    
    // DiscardReader discarded reader
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 06 22:26:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsWriter.java

        @Override
        public void write(Writer output, Map<String, Object> options, PersistedToolchains toolchains) throws IOException {
            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(toolchains, "toolchains cannot be null");
    
            try (Writer out = output) {
                new MavenToolchainsStaxWriter().write(out, toolchains.getDelegate());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        constructed = false // The enclosed object written in block() is not constructed.
        path += name
        try {
          block(content)
          constructedBit = if (constructed) 0b0010_0000 else 0
          constructed = true // The enclosing object is constructed.
        } finally {
          stack.removeAt(stack.size - 1)
          path.removeAt(path.size - 1)
        }
    
        val sink = sink()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top