Home / Function/ readEndOfLine() — netty Function Reference

readEndOfLine() — netty Function Reference

Architecture documentation for the readEndOfLine() function in RedisDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2960bd56_d12c_72f0_fad4_c3d3018db618["readEndOfLine()"]
  2421b439_cffa_67ca_b872_bb582dd0dbf2["RedisDecoder"]
  2960bd56_d12c_72f0_fad4_c3d3018db618 -->|defined in| 2421b439_cffa_67ca_b872_bb582dd0dbf2
  ac6bea2c_1fc9_64fa_127b_cc90adfb0557["decodeBulkStringEndOfLine()"]
  ac6bea2c_1fc9_64fa_127b_cc90adfb0557 -->|calls| 2960bd56_d12c_72f0_fad4_c3d3018db618
  4dcee4b2_7f61_d951_b580_50f0852e5732["decodeBulkStringContent()"]
  4dcee4b2_7f61_d951_b580_50f0852e5732 -->|calls| 2960bd56_d12c_72f0_fad4_c3d3018db618
  5564d30e_5a08_eca2_76db_56705e5ba72a["ByteBuf()"]
  5564d30e_5a08_eca2_76db_56705e5ba72a -->|calls| 2960bd56_d12c_72f0_fad4_c3d3018db618
  style 2960bd56_d12c_72f0_fad4_c3d3018db618 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java lines 246–253

    private static void readEndOfLine(final ByteBuf in) {
        final short delim = in.readShort();
        if (RedisConstants.EOL_SHORT == delim) {
            return;
        }
        final byte[] bytes = RedisCodecUtil.shortToBytes(delim);
        throw new RedisCodecException("delimiter: [" + bytes[0] + "," + bytes[1] + "] (expected: \\r\\n)");
    }

Domain

Subdomains

Frequently Asked Questions

What does readEndOfLine() do?
readEndOfLine() is a function in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java.
Where is readEndOfLine() defined?
readEndOfLine() is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java at line 246.
What calls readEndOfLine()?
readEndOfLine() is called by 3 function(s): ByteBuf, decodeBulkStringContent, decodeBulkStringEndOfLine.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free