Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,425 for dwrite (0.07 sec)

  1. cmd/streaming-signature-v4.go

    	}
    
    	// TODO: It seems like we may have to be prepared to rewrite and sort trailing headers:
    	// https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html
    
    	// Any value must end with a newline.
    	// Not all clients send that.
    	trailerRaw := valueBuffer.Bytes()
    	if len(trailerRaw) > 0 && trailerRaw[len(trailerRaw)-1] != '\n' {
    		valueBuffer.Write([]byte{'\n'})
    	}
    	sig = sig[len("x-amz-trailer-signature:"):]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    }
    
    func calcCommonWritesDeletes(infos []DiskInfo, readQuorum int) (commonWrite, commonDelete uint64) {
    	deletes := make([]uint64, len(infos))
    	writes := make([]uint64, len(infos))
    	for index, di := range infos {
    		deletes[index] = di.Metrics.TotalDeletes
    		writes[index] = di.Metrics.TotalWrites
    	}
    
    	filter := func(list []uint64) (commonCount uint64) {
    		max := 0
    		signatureMap := map[uint64]int{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. internal/ringbuffer/ring_buffer_benchmark_test.go

    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncWrite(b *testing.B) {
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	go func() {
    		for {
    			rb.Write(data)
    		}
    	}()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncWriteBlocking(b *testing.B) {
    	const sz = 512
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SocksProxy.kt

              throw ProtocolException("unexpected address: " + toSocket.localAddress)
            }
    
            // Write the reply.
            fromSink.writeByte(VERSION_5)
            fromSink.writeByte(REPLY_SUCCEEDED)
            fromSink.writeByte(0)
            fromSink.writeByte(ADDRESS_TYPE_IPV4)
            fromSink.write(localAddress)
            fromSink.writeShort(toSocket.localPort)
            fromSink.emit()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. cmd/metrics-v3-cluster-erasure-set.go

    		poolIDL, setIDL)
    	erasureSetReadToleranceMD = NewGaugeMD(erasureSetReadTolerance,
    		"No of drive failures that can be tolerated without disrupting read operations",
    		poolIDL, setIDL)
    	erasureSetWriteToleranceMD = NewGaugeMD(erasureSetWriteTolerance,
    		"No of drive failures that can be tolerated without disrupting write operations",
    		poolIDL, setIDL)
    	erasureSetReadHealthMD = NewGaugeMD(erasureSetReadHealth,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 14 07:25:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. fastapi/datastructures.py

        ]
    
        async def write(
            self,
            data: Annotated[
                bytes,
                Doc(
                    """
                    The bytes to write to the file.
                    """
                ),
            ],
        ) -> None:
            """
            Write some bytes to the file.
    
            You normally wouldn't use this from a file you read in a request.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. cmd/local-locker_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		rUIDs = append(rUIDs, uid)
    
    		// RLock twice, different uid
    		uid = mustGetUUID()
    		arg.UID = uid
    		ok, err = l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		rResources[i] = name
    		rUIDs = append(rUIDs, uid)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java

                writer.println();
                writer.print("    - [");
                writer.print(problem.getSeverity());
                writer.print("] ");
                writer.print(problem.getMessage());
                String location = ModelProblemUtils.formatLocation(problem, modelId);
                if (!location.isEmpty()) {
                    writer.print(" @ ");
                    writer.print(location);
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        counter.write(0);
        written += 1;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

        if (this[i] == '"'.code.toByte()) {
          result.write(this, i)
          // Consume '"'.
          readByte()
          return result.readUtf8()
        }
    
        if (size == i + 1L) return null // Dangling escape.
        result.write(this, i)
        // Consume '\'.
        readByte()
        result.write(this, 1L) // The escaped character.
      }
    }
    
    /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top