Home
last modified time | relevance | path

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

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHpack.java122 Header[] dynamicTable = new Header[8]; field in Hpack.Reader
124 int nextHeaderIndex = dynamicTable.length - 1;
163 Arrays.fill(dynamicTable, null); in clearDynamicTable()
164 nextHeaderIndex = dynamicTable.length - 1; in clearDynamicTable()
174 for (int j = dynamicTable.length - 1; j >= nextHeaderIndex && bytesToRecover > 0; j--) { in evictToRecoverBytes()
175 bytesToRecover -= dynamicTable[j].hpackSize; in evictToRecoverBytes()
176 dynamicTableByteCount -= dynamicTable[j].hpackSize; in evictToRecoverBytes()
180 System.arraycopy(dynamicTable, nextHeaderIndex + 1, dynamicTable, in evictToRecoverBytes()
232 if (dynamicTableIndex < 0 || dynamicTableIndex > dynamicTable.length - 1) { in readIndexedHeader()
235 headerList.add(dynamicTable[dynamicTableIndex]); in readIndexedHeader()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHpackTest.java112 Header entry = hpackReader.dynamicTable[headerTableLength() - 1]; in testEviction()
115 entry = hpackReader.dynamicTable[headerTableLength() - 2]; in testEviction()
161 Header entry = hpackReader.dynamicTable[headerTableLength() - 1]; in huffmanDecodingSupported()
181 Header entry = hpackReader.dynamicTable[headerTableLength() - 1]; in readLiteralHeaderFieldWithIndexing()
265 assertEquals(null, hpackReader.dynamicTable[headerTableLength() - 1]); in staticHeaderIsNotCopiedIntoTheIndexedTable()
399 Header entry = hpackReader.dynamicTable[headerTableLength() - 1]; in checkReadFirstRequestWithoutHuffman()
432 Header entry = hpackReader.dynamicTable[headerTableLength() - 2]; in checkReadSecondRequestWithoutHuffman()
436 entry = hpackReader.dynamicTable[headerTableLength() - 1]; in checkReadSecondRequestWithoutHuffman()
471 Header entry = hpackReader.dynamicTable[headerTableLength() - 3]; in checkReadThirdRequestWithoutHuffman()
475 entry = hpackReader.dynamicTable[headerTableLength() - 2]; in checkReadThirdRequestWithoutHuffman()
[all …]