ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in SpdyHeaderBlockZlibEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c720c12f_ae58_674a_a621_ba0a1ec05575["ByteBuf()"] ee5cb7c0_3853_3f2d_592d_ad4d03df48a3["SpdyHeaderBlockZlibEncoder"] c720c12f_ae58_674a_a621_ba0a1ec05575 -->|defined in| ee5cb7c0_3853_3f2d_592d_ad4d03df48a3 45f16463_fafa_37e4_316d_396f14381cb1["compressInto()"] c720c12f_ae58_674a_a621_ba0a1ec05575 -->|calls| 45f16463_fafa_37e4_316d_396f14381cb1 f113f3d7_a047_f905_66f6_eddbc17f3072["setInput()"] c720c12f_ae58_674a_a621_ba0a1ec05575 -->|calls| f113f3d7_a047_f905_66f6_eddbc17f3072 style c720c12f_ae58_674a_a621_ba0a1ec05575 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibEncoder.java lines 57–72
private ByteBuf encode(ByteBufAllocator alloc, int len) {
ByteBuf compressed = alloc.heapBuffer(len);
boolean release = true;
try {
while (compressInto(compressed)) {
// Although unlikely, it's possible that the compressed size is larger than the decompressed size
compressed.ensureWritable(compressed.capacity() << 1);
}
release = false;
return compressed;
} finally {
if (release) {
compressed.release();
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibEncoder.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibEncoder.java at line 57.
What does ByteBuf() call?
ByteBuf() calls 2 function(s): compressInto, setInput.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free