def METHOD_NAME(row):
    concatenated_bits = b''
    for column in (
        'vlanTrunkPortVlansEnabled',
        'vlanTrunkPortVlansEnabled2k',
        'vlanTrunkPortVlansEnabled3k',
        'vlanTrunkPortVlansEnabled4k',
    ):
        value = row[column] or b''
        concatenated_bits += value.ljust(CHARS_IN_1024_BITS, b'\x00')
    enabled = BitVector(concatenated_bits)
    return as_bitvector and enabled or enabled.get_set_bits()