ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in HttpPostStandardRequestDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aab2e158_a6a7_a56d_9e40_8d9c73c81a4d["ByteBuf()"] 9a5a01b4_1d50_03ee_e135_2164d7bf32cb["HttpPostStandardRequestDecoder"] aab2e158_a6a7_a56d_9e40_8d9c73c81a4d -->|defined in| 9a5a01b4_1d50_03ee_e135_2164d7bf32cb 183a8c5f_e92a_096c_ee5a_bc86d5677d66["UrlDecoder()"] aab2e158_a6a7_a56d_9e40_8d9c73c81a4d -->|calls| 183a8c5f_e92a_096c_ee5a_bc86d5677d66 style aab2e158_a6a7_a56d_9e40_8d9c73c81a4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java lines 598–618
private static ByteBuf decodeAttribute(ByteBuf b, Charset charset) {
int firstEscaped = b.forEachByte(new UrlEncodedDetector());
if (firstEscaped == -1) {
return null; // nothing to decode
}
ByteBuf buf = b.alloc().buffer(b.readableBytes());
UrlDecoder urlDecode = new UrlDecoder(buf);
int idx = b.forEachByte(urlDecode);
if (urlDecode.nextEscapedIdx != 0) { // incomplete hex byte
if (idx == -1) {
idx = b.readableBytes() - 1;
}
idx -= urlDecode.nextEscapedIdx - 1;
buf.release();
throw new ErrorDataDecoderException(
String.format("Invalid hex byte at index '%d' in string: '%s'", idx, b.toString(charset)));
}
return buf;
}
Domain
Subdomains
Defined In
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/http/multipart/HttpPostStandardRequestDecoder.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java at line 598.
What does ByteBuf() call?
ByteBuf() calls 1 function(s): UrlDecoder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free