MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / br_decompress

Method br_decompress

src/main/java/core/packetproxy/http/Http.java:595–599  ·  view source on GitHub ↗
(byte[] input_data)

Source from the content-addressed store, hash-verified

593 }
594
595 private static byte[] br_decompress(byte[] input_data) throws Exception {
596 ByteArrayInputStream in = new ByteArrayInputStream(input_data);
597 BrotliCompressorInputStream brIn = new BrotliCompressorInputStream(in);
598 return IOUtils.toByteArray(brIn);
599 }
600
601 private static byte[] gunzip(byte[] input_data) throws Exception {
602 if (input_data.length == 0) {

Callers 2

parseHttpDelimiterMethod · 0.95
getCookedBodyMethod · 0.95

Calls 1

toByteArrayMethod · 0.45

Tested by

no test coverage detected