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

Method zstd_decompress

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

Source from the content-addressed store, hash-verified

580 }
581
582 private static byte[] zstd_decompress(byte[] input_data) throws Exception {
583 ByteArrayInputStream in = new ByteArrayInputStream(input_data);
584 ZstdCompressorInputStream zstdIn = new ZstdCompressorInputStream(in);
585 return IOUtils.toByteArray(zstdIn);
586 }
587
588 private static byte[] zstd_compress(byte[] input_data) throws Exception {
589 ByteArrayOutputStream out = new ByteArrayOutputStream();

Callers 2

parseHttpDelimiterMethod · 0.95
getCookedBodyMethod · 0.95

Calls 1

toByteArrayMethod · 0.45

Tested by

no test coverage detected