Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 842 for buffers (0.04 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    import okhttp3.internal.http2.Http2.formattedType
    import okhttp3.internal.http2.Http2.frameLog
    import okhttp3.internal.http2.Http2.frameLogWindowUpdate
    import okhttp3.internal.readMedium
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    import okio.Source
    import okio.Timeout
    
    /**
     * Reads HTTP/2 transport frames.
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

              return -1; // We don't know the compressed length in advance!
            }
    
            @Override public void writeTo(BufferedSink sink) throws IOException {
              BufferedSink gzipSink = Okio.buffer(new GzipSink(sink));
              body.writeTo(gzipSink);
              gzipSink.close();
            }
          };
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat May 25 18:02:55 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

    import assertk.assertThat
    import assertk.assertions.startsWith
    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    
    /**
     * Tests how each code point is encoded and decoded in the context of each URL component.
     *
     * This supports [HttpUrlTest].
     */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    		t.Errorf("Modified: got %s, want %s\n", got, want)
    	}
    }
    
    type repeatedByte struct {
    	off int64
    	b   byte
    	n   int64
    }
    
    // rleBuffer is a run-length-encoded byte buffer.
    // It's an io.Writer (like a bytes.Buffer) and also an io.ReaderAt,
    // allowing random-access reads.
    type rleBuffer struct {
    	buf []repeatedByte
    }
    
    func (r *rleBuffer) Size() int64 {
    	if len(r.buf) == 0 {
    		return 0
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. internal/s3select/json/record.go

    	return r.SelectFormat, r.KVS
    }
    
    // WriteJSON - encodes to JSON data.
    func (r *Record) WriteJSON(writer io.Writer) error {
    	return json.NewEncoder(writer).Encode(r.KVS)
    }
    
    // Replace the underlying buffer of json data.
    func (r *Record) Replace(k interface{}) error {
    	v, ok := k.(jstream.KVS)
    	if !ok {
    		return fmt.Errorf("cannot replace internal data in json record with type %T", k)
    	}
    	r.KVS = v
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. internal/s3select/simdj/record.go

    	if err != nil {
    		return err
    	}
    	n, err := writer.Write(b)
    	if err != nil {
    		return err
    	}
    	if n != len(b) {
    		return io.ErrShortWrite
    	}
    	return nil
    }
    
    // Replace the underlying buffer of json data.
    func (r *Record) Replace(k interface{}) error {
    	v, ok := k.(simdjson.Object)
    	if !ok {
    		return fmt.Errorf("cannot replace internal data in simd json record with type %T", k)
    	}
    	r.object = v
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        g2.addEdge(N1, N2, E12);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node/edge sets and node/edge connections are the same, but directedness differs.
      @Test
      public void equivalent_selfLoop_directedVsUndirected() {
        network.addEdge(N1, N1, E11);
    
        MutableNetwork<Integer, String> g2 = createNetwork(oppositeType(edgeType));
        g2.addEdge(N1, N1, E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        g2.addEdge(N1, N2, E12);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node/edge sets and node/edge connections are the same, but directedness differs.
      @Test
      public void equivalent_selfLoop_directedVsUndirected() {
        network.addEdge(N1, N1, E11);
    
        MutableNetwork<Integer, String> g2 = createNetwork(oppositeType(edgeType));
        g2.addEdge(N1, N1, E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                        line = line.substring(1, line.length());
                    }
                    buffer.append(line);
                    if (!combine) {
                        break;
                    }
                }
                return buffer.toString();
            }
    
            /**
             * Parses the next property from the input stream and stores the found
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top