Home / Function/ decode() — netty Function Reference

decode() — netty Function Reference

Architecture documentation for the decode() function in BinaryMemcacheClientCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9da172dd_2bc2_f829_f811_8916ab7d3a66["decode()"]
  4367bf83_54e6_55c7_2385_5e28b317dea2["Decoder"]
  9da172dd_2bc2_f829_f811_8916ab7d3a66 -->|defined in| 4367bf83_54e6_55c7_2385_5e28b317dea2
  style 9da172dd_2bc2_f829_f811_8916ab7d3a66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheClientCodec.java lines 91–105

        @Override
        protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
            int oldSize = out.size();
            super.decode(ctx, in, out);

            if (failOnMissingResponse) {
                final int size = out.size();
                for (int i = oldSize; i < size; i ++) {
                    Object msg = out.get(i);
                    if (msg instanceof LastMemcacheContent) {
                        requestResponseCounter.decrementAndGet();
                    }
                }
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does decode() do?
decode() is a function in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheClientCodec.java.
Where is decode() defined?
decode() is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheClientCodec.java at line 91.

Analyze Your Own Codebase

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

Try Supermodel Free