Home
last modified time | relevance | path

Searched refs:GZIP_HEADER_MIN_SIZE (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGzipInflatingBuffer.java45 private static final int GZIP_HEADER_MIN_SIZE = 10; field in GzipInflatingBuffer
313 || (state == State.HEADER && gzipMetadataReader.readableBytes() < GZIP_HEADER_MIN_SIZE); in inflateBytes()
319 if (gzipMetadataReader.readableBytes() < GZIP_HEADER_MIN_SIZE) { in processHeader()
458 && gzipMetadataReader.readableBytes() <= GZIP_HEADER_MIN_SIZE + GZIP_TRAILER_SIZE) { in processTrailer()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DGzipInflatingBufferTest.java43 private static final int GZIP_HEADER_MIN_SIZE = 10; field in GzipInflatingBufferTest
81 gzipHeader = Arrays.copyOf(gzippedData, GZIP_HEADER_MIN_SIZE); in setUp()
84 gzippedData, GZIP_HEADER_MIN_SIZE, gzippedData.length - GZIP_TRAILER_SIZE); in setUp()
427 gzippedData.length - GZIP_HEADER_MIN_SIZE - GZIP_TRAILER_SIZE, in getAndResetDeflatedBytesConsumedExcludesGzipMetadata()