Home / Function/ shuffle() — netty Function Reference

shuffle() — netty Function Reference

Architecture documentation for the shuffle() function in DecodeHexBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  28c82bad_6821_e9c2_04cf_3a2b062c9264["shuffle()"]
  5c3828dc_c4a2_3a97_8b53_37a9c4e8cecf["DecodeHexBenchmark"]
  28c82bad_6821_e9c2_04cf_3a2b062c9264 -->|defined in| 5c3828dc_c4a2_3a97_8b53_37a9c4e8cecf
  7041c9e4_9b26_8966_9efc_ee216f8a3ea4["init()"]
  7041c9e4_9b26_8966_9efc_ee216f8a3ea4 -->|calls| 28c82bad_6821_e9c2_04cf_3a2b062c9264
  style 28c82bad_6821_e9c2_04cf_3a2b062c9264 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java lines 74–84

    private static char[] shuffle(char[] chars, Random rnd) {
        int index;
        char tmp;
        for (int i = chars.length - 1; i > 0; i--) {
            index = rnd.nextInt(i + 1);
            tmp = chars[index];
            chars[index] = chars[i];
            chars[i] = tmp;
        }
        return chars;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does shuffle() do?
shuffle() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java.
Where is shuffle() defined?
shuffle() is defined in microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java at line 74.
What calls shuffle()?
shuffle() is called by 1 function(s): init.

Analyze Your Own Codebase

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

Try Supermodel Free