Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 65 of 65 for WriteTo (0.33 sec)

  1. src/bytes/buffer_test.go

    }
    
    func TestWriteTo(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    		s := fillBytes(t, "TestWriteTo (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
    		var b Buffer
    		buf.WriteTo(&b)
    		empty(t, "TestWriteTo (2)", &b, s, make([]byte, len(testString)))
    	}
    }
    
    func TestWriteAppend(t *testing.T) {
    	var got Buffer
    	var want []byte
    	for i := 0; i < 1000; i++ {
    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)
  2. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;->contentLength()J
    HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;->contentType()Lokhttp3/MediaType;
    HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;->writeTo(Lokio/BufferedSink;)V
    HSPLokhttp3/internal/_ResponseBodyCommonKt$commonAsResponseBody$1;-><init>(Lokhttp3/MediaType;JLokio/BufferedSource;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  3. cmd/xl-storage_test.go

    	reader := bytes.NewReader(data)
    	for {
    		// Using io.Copy instead of this loop will not work for us as io.Copy
    		// will use bytes.Reader.WriteTo() which will not do shardSize'ed writes
    		// causing error.
    		n, err := reader.Read(shard)
    		w.Write(shard[:n])
    		if err == nil {
    			continue
    		}
    		if err == io.EOF {
    			break
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

      ): MockResponse.Builder {
        val response = builder.build()
        builder.socketPolicy(DisconnectAtEnd)
        val headers = response.headers
        val fullBody = Buffer()
        response.body!!.writeTo(fullBody)
        val truncatedBody = Buffer()
        truncatedBody.write(fullBody, numBytesToKeep.toLong())
        builder.body(truncatedBody)
        builder.headers(headers)
        return builder
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  5. api/go1.1.txt

    pkg bufio, func ScanLines([]uint8, bool) (int, []uint8, error)
    pkg bufio, func ScanRunes([]uint8, bool) (int, []uint8, error)
    pkg bufio, func ScanWords([]uint8, bool) (int, []uint8, error)
    pkg bufio, method (*Reader) WriteTo(io.Writer) (int64, error)
    pkg bufio, method (*Scanner) Bytes() []uint8
    pkg bufio, method (*Scanner) Err() error
    pkg bufio, method (*Scanner) Scan() bool
    pkg bufio, method (*Scanner) Split(SplitFunc)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (1)
Back to top