Home / Function/ writeBoolean() — netty Function Reference

writeBoolean() — netty Function Reference

Architecture documentation for the writeBoolean() function in Bzip2BitWriter.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9b0914d9_a7ef_eafe_50f7_e250ebc0b7e9["writeBoolean()"]
  31f32361_6352_65c5_783c_9a4bef96677a["Bzip2BitWriter"]
  9b0914d9_a7ef_eafe_50f7_e250ebc0b7e9 -->|defined in| 31f32361_6352_65c5_783c_9a4bef96677a
  44f18ee1_4616_636b_d261_1720d63087fe["writeUnary()"]
  44f18ee1_4616_636b_d261_1720d63087fe -->|calls| 9b0914d9_a7ef_eafe_50f7_e250ebc0b7e9
  1f89857b_deb5_14dc_2930_fb3b01467626["writeInt()"]
  9b0914d9_a7ef_eafe_50f7_e250ebc0b7e9 -->|calls| 1f89857b_deb5_14dc_2930_fb3b01467626
  style 9b0914d9_a7ef_eafe_50f7_e250ebc0b7e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitWriter.java lines 62–73

    void writeBoolean(ByteBuf out, final boolean value) {
        int bitCount = this.bitCount + 1;
        long bitBuffer = this.bitBuffer | (value ? 1L << 64 - bitCount : 0L);

        if (bitCount == 32) {
            out.writeInt((int) (bitBuffer >>> 32));
            bitBuffer = 0;
            bitCount = 0;
        }
        this.bitBuffer = bitBuffer;
        this.bitCount = bitCount;
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does writeBoolean() do?
writeBoolean() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitWriter.java.
Where is writeBoolean() defined?
writeBoolean() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitWriter.java at line 62.
What does writeBoolean() call?
writeBoolean() calls 1 function(s): writeInt.
What calls writeBoolean()?
writeBoolean() is called by 1 function(s): writeUnary.

Analyze Your Own Codebase

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

Try Supermodel Free