Home / Function/ writeIntegerMessage() — netty Function Reference

writeIntegerMessage() — netty Function Reference

Architecture documentation for the writeIntegerMessage() function in RedisEncoder.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  caae0006_9740_34a8_f941_5ddb07fe3009["writeIntegerMessage()"]
  917d8b11_c533_469c_d2a7_d3500be572e6["RedisEncoder"]
  caae0006_9740_34a8_f941_5ddb07fe3009 -->|defined in| 917d8b11_c533_469c_d2a7_d3500be572e6
  709fcc53_354a_bc98_e002_ecd01cc6fa7a["writeRedisMessage()"]
  709fcc53_354a_bc98_e002_ecd01cc6fa7a -->|calls| caae0006_9740_34a8_f941_5ddb07fe3009
  4308e55a_fc15_567e_5abb_10a28747293f["numberToBytes()"]
  caae0006_9740_34a8_f941_5ddb07fe3009 -->|calls| 4308e55a_fc15_567e_5abb_10a28747293f
  style caae0006_9740_34a8_f941_5ddb07fe3009 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java lines 113–120

    private void writeIntegerMessage(ByteBufAllocator allocator, IntegerRedisMessage msg, List<Object> out) {
        ByteBuf buf = allocator.ioBuffer(RedisConstants.TYPE_LENGTH + RedisConstants.LONG_MAX_LENGTH +
                                         RedisConstants.EOL_LENGTH);
        RedisMessageType.INTEGER.writeTo(buf);
        buf.writeBytes(numberToBytes(msg.value()));
        buf.writeShort(RedisConstants.EOL_SHORT);
        out.add(buf);
    }

Domain

Subdomains

Frequently Asked Questions

What does writeIntegerMessage() do?
writeIntegerMessage() is a function in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java.
Where is writeIntegerMessage() defined?
writeIntegerMessage() is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisEncoder.java at line 113.
What does writeIntegerMessage() call?
writeIntegerMessage() calls 1 function(s): numberToBytes.
What calls writeIntegerMessage()?
writeIntegerMessage() 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