ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in Lz4FrameEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 34882e29_3b67_8b89_1398_3d552d7b42b6["ByteBuf()"] 16452743_407c_c5f6_ee9f_baa8b84020f0["Lz4FrameEncoderTest"] 34882e29_3b67_8b89_1398_3d552d7b42b6 -->|defined in| 16452743_407c_c5f6_ee9f_baa8b84020f0 style 34882e29_3b67_8b89_1398_3d552d7b42b6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java lines 88–105
@Override
protected ByteBuf decompress(ByteBuf compressed, int originalLength) throws Exception {
byte[] decompressed = new byte[originalLength];
try (LZ4BlockInputStream lz4Is = new LZ4BlockInputStream(new ByteBufInputStream(compressed, true))) {
int remaining = originalLength;
while (remaining > 0) {
int read = lz4Is.read(decompressed, originalLength - remaining, remaining);
if (read > 0) {
remaining -= read;
} else {
break;
}
}
assertEquals(-1, lz4Is.read());
}
return Unpooled.wrappedBuffer(decompressed);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java at line 88.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free