writeBulkStringHeader() — netty Function Reference
Architecture documentation for the writeBulkStringHeader() function in RedisEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7e10357c_f4d5_f8de_587b_14da5fad2b4d["writeBulkStringHeader()"] 917d8b11_c533_469c_d2a7_d3500be572e6["RedisEncoder"] 7e10357c_f4d5_f8de_587b_14da5fad2b4d -->|defined in| 917d8b11_c533_469c_d2a7_d3500be572e6 709fcc53_354a_bc98_e002_ecd01cc6fa7a["writeRedisMessage()"] 709fcc53_354a_bc98_e002_ecd01cc6fa7a -->|calls| 7e10357c_f4d5_f8de_587b_14da5fad2b4d 4308e55a_fc15_567e_5abb_10a28747293f["numberToBytes()"] 7e10357c_f4d5_f8de_587b_14da5fad2b4d -->|calls| 4308e55a_fc15_567e_5abb_10a28747293f style 7e10357c_f4d5_f8de_587b_14da5fad2b4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java lines 122–134
private void writeBulkStringHeader(ByteBufAllocator allocator, BulkStringHeaderRedisMessage msg, List<Object> out) {
final ByteBuf buf = allocator.ioBuffer(RedisConstants.TYPE_LENGTH +
(msg.isNull() ? RedisConstants.NULL_LENGTH :
RedisConstants.LONG_MAX_LENGTH + RedisConstants.EOL_LENGTH));
RedisMessageType.BULK_STRING.writeTo(buf);
if (msg.isNull()) {
buf.writeShort(RedisConstants.NULL_SHORT);
} else {
buf.writeBytes(numberToBytes(msg.bulkStringLength()));
buf.writeShort(RedisConstants.EOL_SHORT);
}
out.add(buf);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeBulkStringHeader() do?
writeBulkStringHeader() is a function in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java.
Where is writeBulkStringHeader() defined?
writeBulkStringHeader() is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java at line 122.
What does writeBulkStringHeader() call?
writeBulkStringHeader() calls 1 function(s): numberToBytes.
What calls writeBulkStringHeader()?
writeBulkStringHeader() is called by 1 function(s): writeRedisMessage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free