class documentation

Base class for an unresolved declaration of a named user-defined type.

Method __init__ Initializes a new instance of this class from its name and its mangled name if available.
Method description The short description of this type.
Method parse Unconditionally returns None, as no instance of this type can exist.
Method size_bytes Always 0.
Method to_bytes Always raises.
Property mangled_name The mangled name of this declaration, if available.
Property name The name of this declaration.
Method _construct_type Return the underlying construct instance
Method _resolve Uses the resolver to return a resolved version of the type, if possible.
Instance Variable _mangled_name Undocumented
Instance Variable _name Undocumented

Inherited from Type:

Method is_context_sensitive Whether the context argument needed by some methods actually has an effect.
def __init__(self, name, mangled_name):

Initializes a new instance of this class from its name and its mangled name if available.

Parameters
name:strUndocumented
mangled_name:_Optional[str]Undocumented
def description(self):

The short description of this type.

For named types, it is the name of the type. For other types, it is generally __str__.

Returns
strUndocumented
def parse(self, buf, context=None):

Unconditionally returns None, as no instance of this type can exist.

Parameters
buf:bytesUndocumented
context:_Optional[Context]Undocumented
def size_bytes(self, context=None):

Always 0.

Parameters
context:_Optional[Context]Undocumented
Returns
intUndocumented
def to_bytes(self, value, context=None):

Always raises.

Information

Parameters
value:NoneUndocumented
context:_Optional[Context]Undocumented
Returns
_NoReturnUndocumented
Raises
RuntimeErrorsince no value of this type can exist, calling to_bytes with a value should be impossible.
@property
mangled_name: _Optional[str] =

The mangled name of this declaration, if available.

@property
name: str =

The name of this declaration.

def _construct_type(self, context=None):

Return the underlying construct instance

Parameters
context:_Optional[Context]Undocumented
Returns
_construct.core.ConstructUndocumented
def _resolve(self, resolver):

Uses the resolver to return a resolved version of the type, if possible.

Parameters
resolver:_BaseTypeResolverUndocumented
Returns
_TypeUndocumented
_mangled_name =

Undocumented

_name =

Undocumented