public int encodedLength()
    {
        if (presence() == Presence.CONSTANT)
        {
            return 0;
        }

        return encodingType.size();
    }
The encodedLength (in octets) of the encodingType.

@return encodedLength of the encodingType.
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/EnumType.java