ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in RedisDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5564d30e_5a08_eca2_76db_56705e5ba72a["ByteBuf()"] 2421b439_cffa_67ca_b872_bb582dd0dbf2["RedisDecoder"] 5564d30e_5a08_eca2_76db_56705e5ba72a -->|defined in| 2421b439_cffa_67ca_b872_bb582dd0dbf2 2960bd56_d12c_72f0_fad4_c3d3018db618["readEndOfLine()"] 5564d30e_5a08_eca2_76db_56705e5ba72a -->|calls| 2960bd56_d12c_72f0_fad4_c3d3018db618 style 5564d30e_5a08_eca2_76db_56705e5ba72a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java lines 276–287
private static ByteBuf readLine(ByteBuf in) {
if (!in.isReadable(RedisConstants.EOL_LENGTH)) {
return null;
}
final int lfIndex = in.indexOf(in.readerIndex(), in.writerIndex(), (byte) '\n');
if (lfIndex < 0) {
return null;
}
ByteBuf data = in.readSlice(lfIndex - in.readerIndex() - 1); // `-1` is for CR
readEndOfLine(in); // validate CR LF
return data;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java at line 276.
What does ByteBuf() call?
ByteBuf() calls 1 function(s): readEndOfLine.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free