Home / Function/ valueToFront() — netty Function Reference

valueToFront() — netty Function Reference

Architecture documentation for the valueToFront() function in Bzip2MoveToFrontTable.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  be64b934_c44c_ad56_4f57_4a4f22201b41["valueToFront()"]
  b3ea3f58_c137_d624_b5ca_024ca72d4ba8["Bzip2MoveToFrontTable"]
  be64b934_c44c_ad56_4f57_4a4f22201b41 -->|defined in| b3ea3f58_c137_d624_b5ca_024ca72d4ba8
  style be64b934_c44c_ad56_4f57_4a4f22201b41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2MoveToFrontTable.java lines 57–70

    int valueToFront(final byte value) {
        int index = 0;
        byte temp = mtf[0];
        if (value != temp) {
            mtf[0] = value;
            while (value != temp) {
                index++;
                final byte temp2 = temp;
                temp = mtf[index];
                mtf[index] = temp2;
            }
        }
        return index;
    }

Domain

Subdomains

Frequently Asked Questions

What does valueToFront() do?
valueToFront() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2MoveToFrontTable.java.
Where is valueToFront() defined?
valueToFront() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2MoveToFrontTable.java at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free