AbstractNativeType
Source code in cstruct/native_types.py
110 111 112 113 114 115 116 117 |
|
sizeof()
classmethod
Type size (in bytes)
cstruct/native_types.py
114 115 116 117 |
|
NativeTypeMeta
Bases: ABCMeta
Source code in cstruct/native_types.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
__size__: int = 0
class-attribute
instance-attribute
Size in bytes
native_format: str = ''
class-attribute
instance-attribute
Type format
size: int
property
Type size (in bytes)
type_name: str = ''
class-attribute
instance-attribute
Type name
__len__()
Type size (in bytes)
cstruct/native_types.py
100 101 102 |
|
get_native_type(type_)
Get a base data type by name
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
cstruct/native_types.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|