Home / Function/ MqttReasonCodeAndPropertiesVariableHeader() — netty Function Reference

MqttReasonCodeAndPropertiesVariableHeader() — netty Function Reference

Architecture documentation for the MqttReasonCodeAndPropertiesVariableHeader() function in MqttDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fc3166bc_2c32_c8b7_e203_32d9c6648fa1["MqttReasonCodeAndPropertiesVariableHeader()"]
  c4faa729_e212_a3dd_9d90_3e8fd908d755["MqttDecoder"]
  fc3166bc_2c32_c8b7_e203_32d9c6648fa1 -->|defined in| c4faa729_e212_a3dd_9d90_3e8fd908d755
  8cad50bc_08ed_5075_a0f7_de30f00ba977["decodeProperties()"]
  fc3166bc_2c32_c8b7_e203_32d9c6648fa1 -->|calls| 8cad50bc_08ed_5075_a0f7_de30f00ba977
  style fc3166bc_2c32_c8b7_e203_32d9c6648fa1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttDecoder.java lines 433–452

    private MqttReasonCodeAndPropertiesVariableHeader decodeReasonCodeAndPropertiesVariableHeader(
            ByteBuf buffer) {
        final byte reasonCode;
        final MqttProperties properties;
        if (bytesRemainingInVariablePart > 1) {
            reasonCode = buffer.readByte();
            final Result<MqttProperties> propertiesResult = decodeProperties(buffer);
            properties = propertiesResult.value;
            bytesRemainingInVariablePart -= 1 + propertiesResult.numberOfBytesConsumed;
        } else if (bytesRemainingInVariablePart > 0) {
            reasonCode = buffer.readByte();
            properties = MqttProperties.NO_PROPERTIES;
            --bytesRemainingInVariablePart;
        } else {
            reasonCode = 0;
            properties = MqttProperties.NO_PROPERTIES;
        }

        return new MqttReasonCodeAndPropertiesVariableHeader(reasonCode, properties);
    }

Domain

Subdomains

Frequently Asked Questions

What does MqttReasonCodeAndPropertiesVariableHeader() do?
MqttReasonCodeAndPropertiesVariableHeader() is a function in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttDecoder.java.
Where is MqttReasonCodeAndPropertiesVariableHeader() defined?
MqttReasonCodeAndPropertiesVariableHeader() is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttDecoder.java at line 433.
What does MqttReasonCodeAndPropertiesVariableHeader() call?
MqttReasonCodeAndPropertiesVariableHeader() calls 1 function(s): decodeProperties.

Analyze Your Own Codebase

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

Try Supermodel Free