INNER CODE UNIT · Python

__get_sbtype__

mongodb/mongo-c-driver · lldb_bson.py:221

    def __get_sbtype__(cls, frame: SBFrame, addr: int) -> SBType:
        """
        Obtain the SBType for this class. Can be overriden in subclasses, and
        the type may consider the value that lives at the address.
        """
        return generate_or_get_type(f'struct {cls.__typename__} {{}}', frame)

    @print_errors
    def __init__(self, val: SBValue, idict: InternalDict | None = None) -> None:
        self.__sbvalue = val
        'The SBValue given for this object'
        self.__children: list[ChildItem] = []
        'The synthetic children associated with the value'
        self.__value: T | None = None
        'The decoded value, or ``None`` if it has not yet been decoded'

    @property
    def sbvalue(self) -> SBValue:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…