compress() — netty Function Reference
Architecture documentation for the compress() function in Lz4FrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3ad58d3c_8aa6_d07e_28c2_6fd1f7350190["compress()"] 6397f8d2_f5d1_2f9d_0dfd_f6f73dd0690c["Lz4FrameDecoderTest"] 3ad58d3c_8aa6_d07e_28c2_6fd1f7350190 -->|defined in| 6397f8d2_f5d1_2f9d_0dfd_f6f73dd0690c style 3ad58d3c_8aa6_d07e_28c2_6fd1f7350190 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameDecoderTest.java lines 149–159
@Override
protected byte[] compress(byte[] data) throws Exception {
ByteArrayOutputStream os = new ByteArrayOutputStream();
int size = MAX_BLOCK_SIZE + 1;
try (LZ4BlockOutputStream lz4Os = new LZ4BlockOutputStream(os,
rand.nextInt(size - MIN_BLOCK_SIZE) + MIN_BLOCK_SIZE)) {
lz4Os.write(data);
}
return os.toByteArray();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does compress() do?
compress() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameDecoderTest.java.
Where is compress() defined?
compress() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameDecoderTest.java at line 149.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free