BinaryMemcacheRequestDecoder Class — netty Architecture
Architecture documentation for the BinaryMemcacheRequestDecoder class in BinaryMemcacheRequestDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 347d1f7a_728a_130b_e9c3_d9780541b18f["BinaryMemcacheRequestDecoder"] 6f2cea02_0c46_64b1_dce7_d6d5386d9926["BinaryMemcacheRequestDecoder.java"] 347d1f7a_728a_130b_e9c3_d9780541b18f -->|defined in| 6f2cea02_0c46_64b1_dce7_d6d5386d9926 1aa74da2_ee18_4854_448d_d4dfc56ccfd3["BinaryMemcacheRequestDecoder()"] 347d1f7a_728a_130b_e9c3_d9780541b18f -->|method| 1aa74da2_ee18_4854_448d_d4dfc56ccfd3 02ffbf57_3806_9253_aaa9_fb7ccc3f7513["BinaryMemcacheRequest()"] 347d1f7a_728a_130b_e9c3_d9780541b18f -->|method| 02ffbf57_3806_9253_aaa9_fb7ccc3f7513
Relationship Graph
Source Code
codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheRequestDecoder.java lines 25–56
@UnstableApi
public class BinaryMemcacheRequestDecoder
extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest> {
public BinaryMemcacheRequestDecoder() {
this(DEFAULT_MAX_CHUNK_SIZE);
}
public BinaryMemcacheRequestDecoder(int chunkSize) {
super(chunkSize);
}
@Override
protected BinaryMemcacheRequest decodeHeader(ByteBuf in) {
DefaultBinaryMemcacheRequest header = new DefaultBinaryMemcacheRequest();
header.setMagic(in.readByte());
header.setOpcode(in.readByte());
header.setKeyLength(in.readShort());
header.setExtrasLength(in.readByte());
header.setDataType(in.readByte());
header.setReserved(in.readShort());
header.setTotalBodyLength(in.readInt());
header.setOpaque(in.readInt());
header.setCas(in.readLong());
return header;
}
@Override
protected BinaryMemcacheRequest buildInvalidMessage() {
return new DefaultBinaryMemcacheRequest(Unpooled.EMPTY_BUFFER, Unpooled.EMPTY_BUFFER);
}
}
Source
Frequently Asked Questions
What is the BinaryMemcacheRequestDecoder class?
BinaryMemcacheRequestDecoder is a class in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheRequestDecoder.java.
Where is BinaryMemcacheRequestDecoder defined?
BinaryMemcacheRequestDecoder is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheRequestDecoder.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free