ToPositiveLongProcessor Class — netty Architecture
Architecture documentation for the ToPositiveLongProcessor class in RedisDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f0c2ab0a_0d15_f76a_e078_667f3da1b20b["ToPositiveLongProcessor"] b9aeddc0_c06c_00a2_5cad_700bb9950817["RedisDecoder.java"] f0c2ab0a_0d15_f76a_e078_667f3da1b20b -->|defined in| b9aeddc0_c06c_00a2_5cad_700bb9950817 7fe64d27_70a6_7899_aed7_a0b79b91cf9b["process()"] f0c2ab0a_0d15_f76a_e078_667f3da1b20b -->|method| 7fe64d27_70a6_7899_aed7_a0b79b91cf9b 0df9701e_2033_9071_89ea_efef43978715["content()"] f0c2ab0a_0d15_f76a_e078_667f3da1b20b -->|method| 0df9701e_2033_9071_89ea_efef43978715 48e2345b_d659_56a2_5a61_ee102c954381["reset()"] f0c2ab0a_0d15_f76a_e078_667f3da1b20b -->|method| 48e2345b_d659_56a2_5a61_ee102c954381
Relationship Graph
Source Code
codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java lines 312–331
private static final class ToPositiveLongProcessor implements ByteProcessor {
private long result;
@Override
public boolean process(byte value) throws Exception {
if (value < '0' || value > '9') {
throw new RedisCodecException("bad byte in number: " + value);
}
result = result * 10 + (value - '0');
return true;
}
public long content() {
return result;
}
public void reset() {
result = 0;
}
}
Source
Frequently Asked Questions
What is the ToPositiveLongProcessor class?
ToPositiveLongProcessor is a class in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java.
Where is ToPositiveLongProcessor defined?
ToPositiveLongProcessor is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisDecoder.java at line 312.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free