@staticmethod
def bitSizeOf(bitPosition, value):
    """
        Returns length of Zserio object type stored in the bit stream in bits.

        :param bitPosition: Current bit position in bit stream.
        :param value: Zserio object type value.
        :returns: Length of given Zserio object type in bits.
        """
    return value.bitSizeOf(bitPosition)
