Home / Function/ transfer() — netty Function Reference

transfer() — netty Function Reference

Architecture documentation for the transfer() function in WebSocket08EncoderDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  769a32ef_247a_a420_e4eb_c20e3eecc81e["transfer()"]
  1641b287_2aaf_ce3b_c2c6_654ccc82886d["WebSocket08EncoderDecoderTest"]
  769a32ef_247a_a420_e4eb_c20e3eecc81e -->|defined in| 1641b287_2aaf_ce3b_c2c6_654ccc82886d
  eb12ef0f_e293_b4ee_ce25_85a0867ad801["testTextWithLen()"]
  eb12ef0f_e293_b4ee_ce25_85a0867ad801 -->|calls| 769a32ef_247a_a420_e4eb_c20e3eecc81e
  0922f899_084a_8fad_20de_9e770362a721["testBinaryWithLen()"]
  0922f899_084a_8fad_20de_9e770362a721 -->|calls| 769a32ef_247a_a420_e4eb_c20e3eecc81e
  style 769a32ef_247a_a420_e4eb_c20e3eecc81e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java lines 211–221

    private void transfer(EmbeddedChannel outChannel, EmbeddedChannel inChannel) {
        // Transfer encoded data into decoder
        // Loop because there might be multiple frames (gathering write)
        for (;;) {
            ByteBuf encoded = outChannel.readOutbound();
            if (encoded == null) {
                return;
            }
            inChannel.writeInbound(encoded);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does transfer() do?
transfer() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java.
Where is transfer() defined?
transfer() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java at line 211.
What calls transfer()?
transfer() is called by 2 function(s): testBinaryWithLen, testTextWithLen.

Analyze Your Own Codebase

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

Try Supermodel Free