Home
last modified time | relevance | path

Searched refs:readByteString (Results 1 – 23 of 23) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DNameValueBlockReader.java90 ByteString name = readByteString().toAsciiLowercase(); in readNameValueBlock()
91 ByteString values = readByteString(); in readNameValueBlock()
100 private ByteString readByteString() throws IOException { in readByteString() method in NameValueBlockReader
102 return source.readByteString(length); in readByteString()
DHpack.java246 ByteString value = readByteString(); in readLiteralHeaderWithoutIndexingIndexedName()
251 ByteString name = checkLowercase(readByteString()); in readLiteralHeaderWithoutIndexingNewName()
252 ByteString value = readByteString(); in readLiteralHeaderWithoutIndexingNewName()
259 ByteString value = readByteString(); in readLiteralHeaderWithIncrementalIndexingIndexedName()
264 ByteString name = checkLowercase(readByteString()); in readLiteralHeaderWithIncrementalIndexingNewName()
265 ByteString value = readByteString(); in readLiteralHeaderWithIncrementalIndexingNewName()
344 ByteString readByteString() throws IOException { in readByteString() method in Hpack.Reader
352 return source.readByteString(length); in readByteString()
DHttp2.java104 ByteString connectionPreface = source.readByteString(CONNECTION_PREFACE.size()); in readConnectionPreface()
345 debugData = source.readByteString(opaqueDataLength); in readGoAway()
/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSource.java81 @Override public ByteString readByteString() throws IOException { in readByteString() method in RealBufferedSource
83 return buffer.readByteString(); in readByteString()
86 @Override public ByteString readByteString(long byteCount) throws IOException { in readByteString() method in RealBufferedSource
88 return buffer.readByteString(byteCount); in readByteString()
201 + " content=" + data.readByteString().hex() + "..."); in readUtf8LineStrict()
DBufferedSource.java98 ByteString readByteString() throws IOException; in readByteString() method
101 ByteString readByteString(long byteCount) throws IOException; in readByteString() method
DBuffer.java524 @Override public ByteString readByteString() {
528 @Override public ByteString readByteString(long byteCount) throws EOFException {
610 + " content=" + data.readByteString().hex() + "...");
1391 ByteString data = clone().readByteString();
/external/okhttp/okio/okio/src/test/java/okio/
DBufferedSinkTest.java174 assertEquals(ByteString.decodeHex("74c999cb8872616ec999cb8c73c3b472"), data.readByteString());
180 assertEquals(ByteString.decodeHex("72616ec999"), data.readByteString());
187 + "000002cc00000073000000f400000072"), data.readByteString());
193 assertEquals(ByteString.decodeHex("00000072000000610000006e00000259"), data.readByteString());
DUtf8Test.java200 assertEquals(buffer.readByteString(), ByteString.decodeHex(hex)); in assertCodePointEncoded()
219 ByteString actualUtf8 = new Buffer().writeUtf8(string).readByteString(); in assertStringEncoded()
DInflaterSourceTest.java75 assertEquals(original, inflated.readByteString()); in inflatePoorlyCompressed()
DBufferedSourceTest.java361 @Test public void readByteString() throws IOException { in readByteString() method in BufferedSourceTest
363 assertEquals("abcd" + repeat('e', Segment.SIZE), source.readByteString().utf8()); in readByteString()
368 assertEquals("abc", source.readByteString(3).utf8()); in readByteStringPartial()
DDeflaterSinkTest.java76 assertEquals(original, inflated.readByteString()); in deflatePoorlyCompressed()
DRealBufferedSourceTest.java176 bufferedSource.readByteString(10); in operationsAfterClose()
DBufferTest.java124 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool()
128 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketWriterTest.java53 assertEquals("Data not empty", "", data.readByteString().hex());
319 ByteString actual = data.readByteString(expected.size()); in assertData()
329 assertEquals("At " + i, expectedChunk.readByteString(), this.data.readByteString(count)); in assertData()
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/
DHpackRoundTripTest.java57 caze.setWire(bytesOut.readByteString()); in testRoundTrip()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DWebSocketEcho.java54 System.out.println("MESSAGE: " + message.source().readByteString().hex()); in onMessage()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHpackTest.java692 assertEquals(ByteString.EMPTY, newReader(byteStream(0)).readByteString()); in emptyHeaderName()
711 ByteString actual = bytesOut.readByteString(); in assertBytes()
DMockSpdyPeer.java270 this.data = source.readByteString(length).toByteArray(); in data()
DHttp2Test.java393 ByteString data = source.readByteString(length); in maxLengthDataFrame()
714 ByteString data = source.readByteString(length);
DSpdy3ConnectionTest.java1213 Okio.buffer(in).readByteString(101);
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java91 response = RequestBody.create(BINARY, source.readByteString()); in runTest()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRequestTest.java234 return buffer.readByteString().hex(); in bodyToHex()
/external/okhttp/okio/
DREADME.md83 ByteString header = pngSource.readByteString(PNG_HEADER.size());