Home
last modified time | relevance | path

Searched refs:bytesOut (Results 1 – 11 of 11) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DMockSpdyPeer.java46 private final Buffer bytesOut = new Buffer(); field in MockSpdyPeer
47 private FrameWriter frameWriter = variant.newWriter(bytesOut, client);
62 this.frameWriter = variant.newWriter(bytesOut, client); in setVariantAndClient()
80 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false)); in sendFrame()
89 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false)); in sendFrame()
90 bytesOut.write(frame); in sendFrame()
100 if (length >= bytesOut.size() - lastFrame.start) throw new IllegalArgumentException(); in truncateLastFrame()
104 bytesOut.read(fullBuffer, bytesOut.size()); in truncateLastFrame()
107 fullBuffer.read(bytesOut, lastFrame.start + length); in truncateLastFrame()
151 byte[] outBytes = bytesOut.readByteArray(); in readAndWriteFrames()
DHpackTest.java35 private Buffer bytesOut = new Buffer(); field in HpackTest
40 hpackWriter = new Hpack.Writer(bytesOut); in reset()
55 bytesIn.writeAll(bytesOut); in largeHeaderValue()
199 assertEquals(bytesIn, bytesOut); in literalHeaderFieldWithoutIndexingIndexedName()
219 assertEquals(bytesIn, bytesOut); in literalHeaderFieldWithoutIndexingNewName()
711 ByteString actual = bytesOut.readByteString(); in assertBytes()
DHttpOverSpdyTest.java435 Buffer bytesOut = new Buffer(); in gzip() local
436 BufferedSink sink = Okio.buffer(new GzipSink(bytesOut)); in gzip()
439 return bytesOut; in gzip()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java191 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in setChunkedBody() local
195 bytesOut.write(Integer.toHexString(chunkSize).getBytes(US_ASCII)); in setChunkedBody()
196 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody()
197 bytesOut.write(body, pos, chunkSize); in setChunkedBody()
198 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody()
201 bytesOut.write("0\r\n\r\n".getBytes(US_ASCII)); // last chunk + empty trailer + crlf in setChunkedBody()
203 this.body = bytesOut.toByteArray(); in setChunkedBody()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java166 Buffer bytesOut = new Buffer(); in setChunkedBody() local
169 bytesOut.writeHexadecimalUnsignedLong(chunkSize); in setChunkedBody()
170 bytesOut.writeUtf8("\r\n"); in setChunkedBody()
171 bytesOut.write(body, chunkSize); in setChunkedBody()
172 bytesOut.writeUtf8("\r\n"); in setChunkedBody()
174 bytesOut.writeUtf8("0\r\n\r\n"); // Last chunk + empty trailer + CRLF. in setChunkedBody()
176 this.body = bytesOut; in setChunkedBody()
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DAbstractRandomGenerator.java107 int bytesOut = 0; in nextBytes() local
108 while (bytesOut < bytes.length) { in nextBytes()
114 bytes[bytesOut++] = (byte) randInt; in nextBytes()
115 if (bytesOut == bytes.length) { in nextBytes()
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/
DHpackRoundTripTest.java44 private Buffer bytesOut = new Buffer(); field in HpackRoundTripTest
45 private Hpack.Writer hpackWriter = new Hpack.Writer(bytesOut);
57 caze.setWire(bytesOut.readByteString()); in testRoundTrip()
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DWrapperTester.java92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray()); in getBytes()
191 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); field in WrapperTester.ClosableByteArrayOutputStream
204 bytesOut.write(oneByte); in write()
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
Dwebrtc_cng.c230 size_t* bytesOut, int16_t forceSID) { in WebRtcCng_Encode() argument
329 *bytesOut = 0; in WebRtcCng_Encode()
388 *bytesOut = inst->enc_nrOfCoefs + 1; in WebRtcCng_Encode()
396 *bytesOut = 0; in WebRtcCng_Encode()
Dwebrtc_cng.h108 size_t* bytesOut, int16_t forceSID);
/external/bzip2/
Dbzip2recover.c66 MaybeUInt64 bytesOut = 0; variable
185 bytesOut++; in bsPutBit()
229 bytesOut++; in bsClose()