Searched refs:gzippedData (Results 1 – 2 of 2) sorted by relevance
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | GzipInflatingBufferTest.java | 58 private byte[] gzippedData; field in GzipInflatingBufferTest 78 gzippedData = gzippedOutputStream.toByteArray(); in setUp() 81 gzipHeader = Arrays.copyOf(gzippedData, GZIP_HEADER_MIN_SIZE); in setUp() 84 gzippedData, GZIP_HEADER_MIN_SIZE, gzippedData.length - GZIP_TRAILER_SIZE); in setUp() 87 gzippedData, gzippedData.length - GZIP_TRAILER_SIZE, gzippedData.length); in setUp() 108 gzipInflatingBuffer.addGzippedBytes(ReadableBuffers.wrap(gzippedData)); in gzipInflateWorks() 112 assertEquals(gzippedData.length, gzipInflatingBuffer.getAndResetBytesConsumed()); in gzipInflateWorks() 119 gzipInflatingBuffer.addGzippedBytes(ReadableBuffers.wrap(gzippedData, 0, initialBytes)); in splitGzipStreamWorks() 128 ReadableBuffers.wrap(gzippedData, initialBytes, gzippedData.length - initialBytes)); in splitGzipStreamWorks() 131 assertEquals(gzippedData.length - initialBytes, gzipInflatingBuffer.getAndResetBytesConsumed()); in splitGzipStreamWorks() [all …]
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | GzipInflatingBuffer.java | 73 b = gzippedData.readUnsignedByte(); in readUnsignedByte() 103 gzippedData.readBytes(buf, 0, toRead); in skipBytes() 113 return (inflaterInputEnd - inflaterInputStart) + gzippedData.readableBytes(); in readableBytes() 156 private final CompositeReadableBuffer gzippedData = new CompositeReadableBuffer(); field in GzipInflatingBuffer 211 gzippedData.addBuffer(buffer); in addGzippedBytes() 219 gzippedData.close(); in close() 444 int bytesToAdd = Math.min(gzippedData.readableBytes(), INFLATE_BUFFER_SIZE); in fill() 450 gzippedData.readBytes(inflaterInput, inflaterInputStart, bytesToAdd); in fill()
|