💾 Archived View for tris.fyi › pydoc › cffi.model captured on 2023-01-29 at 04:17:51. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

cffi

cffi.model

This module has no docstring.

Classes

ArrayType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
length_is_unknown(self)
resolve_length(self, newlength)
is_array_type = True
is_raw_function = False

BaseFunctionType

get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

BasePrimitiveType

get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_complex_type(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

BaseType

get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

BaseTypeByIdentity

get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

CDefError

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

EnumType

build_backend_type(self, ffi, finishlist)
build_baseinttype(self, ffi, finishlist)
build_c_name_with_marker(self)
check_not_partial(self)
force_the_name(self, forcename)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
get_official_name(self)
has_c_name(self)
is_integer_type(self)
forcename = None
is_array_type = False
is_raw_function = False
kind = 'enum'
partial = False
partial_resolved = False

FunctionPtrType

as_raw_function(self)
build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

NamedPointerType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

PointerType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

PrimitiveType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_char_type(self)
is_complex_type(self)
is_float_type(self)
is_integer_type(self)
ALL_PRIMITIVE_TYPES = {'char': 'c', 'short': 'i', 'int': 'i', 'long': 'i', 'long long': 'i', 'signed char': 'i', 'unsigned char': 'i', 'unsigned short': 'i', 'unsigned int': 'i', 'unsigned long': 'i', 'unsigned long long': 'i', 'float': 'f', 'double': 'f', 'long double': 'f', 'float _Complex': 'j', 'double _Complex': 'j', '_Bool': 'i', 'wchar_t': 'c', 'char16_t': 'c', 'char32_t': 'c', 'int8_t': 'i', 'uint8_t': 'i', 'int16_t': 'i', 'uint16_t': 'i', 'int32_t': 'i', 'uint32_t': 'i', 'int64_t': 'i', 'uint64_t': 'i', 'int_least8_t': 'i', 'uint_least8_t': 'i', 'int_least16_t': 'i', 'uint_least16_t': 'i', 'int_least32_t': 'i', 'uint_least32_t': 'i', 'int_least64_t': 'i', 'uint_least64_t': 'i', 'int_fast8_t': 'i', 'uint_fast8_t': 'i', 'int_fast16_t': 'i', 'uint_fast16_t': 'i', 'int_fast32_t': 'i', 'uint_fast32_t': 'i', 'int_fast64_t': 'i', 'uint_fast64_t': 'i', 'intptr_t': 'i', 'uintptr_t': 'i', 'intmax_t': 'i', 'uintmax_t': 'i', 'ptrdiff_t': 'i', 'size_t': 'i', 'ssize_t': 'i'}
is_array_type = False
is_raw_function = False

RawFunctionType

as_function_pointer(self)
build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = True

StructOrUnion

anonymous_struct_fields(self)
build_backend_type(self, ffi, finishlist)
build_c_name_with_marker(self)
check_not_partial(self)
enumfields(self, expand_anonymous_struct_union=True)
finish_backend_type(self, ffi, finishlist)
force_flatten(self)
force_the_name(self, forcename)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
get_official_name(self)
has_c_name(self)
is_integer_type(self)
completed = 0
fixedlayout = None
forcename = None
is_array_type = False
is_raw_function = False
packed = 0
partial = False

StructOrUnionOrEnum

build_c_name_with_marker(self)
force_the_name(self, forcename)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
get_official_name(self)
has_c_name(self)
is_integer_type(self)
forcename = None
is_array_type = False
is_raw_function = False

StructType

anonymous_struct_fields(self)
build_backend_type(self, ffi, finishlist)
build_c_name_with_marker(self)
check_not_partial(self)
enumfields(self, expand_anonymous_struct_union=True)
finish_backend_type(self, ffi, finishlist)
force_flatten(self)
force_the_name(self, forcename)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
get_official_name(self)
has_c_name(self)
is_integer_type(self)
completed = 0
fixedlayout = None
forcename = None
is_array_type = False
is_raw_function = False
kind = 'struct'
packed = 0
partial = False

UnionType

anonymous_struct_fields(self)
build_backend_type(self, ffi, finishlist)
build_c_name_with_marker(self)
check_not_partial(self)
enumfields(self, expand_anonymous_struct_union=True)
finish_backend_type(self, ffi, finishlist)
force_flatten(self)
force_the_name(self, forcename)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
get_official_name(self)
has_c_name(self)
is_integer_type(self)
completed = 0
fixedlayout = None
forcename = None
is_array_type = False
is_raw_function = False
kind = 'union'
packed = 0
partial = False

UnknownFloatType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_complex_type(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

UnknownIntegerType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_complex_type(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

VerificationError

 An error raised when verification fails
    
with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

VerificationMissing

 An error raised when incomplete structures are passed into
    cdef, but no verification has been done
    
with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

VoidType

build_backend_type(self, ffi, finishlist)
get_c_name(self, replace_with='', context='a C file', quals=0)
get_cached_btype(self, ffi, finishlist, can_delay=False)
has_c_name(self)
is_integer_type(self)
is_array_type = False
is_raw_function = False

Functions

ConstPointerType

ConstPointerType(totype)

allocate_lock

allocate_lock(...)

  allocate_lock() -> lock object
  (allocate() is an obsolete synonym)

  Create a new lock object. See help(type(threading.Lock())) for
  information about locks.

attach_exception_info

attach_exception_info(e, name)

get_typecache

get_typecache(backend)

global_cache

global_cache(srctype, ffi, funcname, *args, **kwds)

pointer_cache

pointer_cache(ffi, BType)

qualify

qualify(quals, replace_with)

unknown_ptr_type

unknown_ptr_type(name, structname=None)

unknown_type

unknown_type(name, structname=None)

Other members

Q_CONST = 1
Q_RESTRICT = 2
Q_VOLATILE = 4
char_array_type = <char[]>
const_voidp_type = <void const *>
global_lock = <unlocked _thread.lock object at 0x7f75e07476c0>
void_type = <void>
voidp_type = <void *>

Modules

types

weakref