structField - wrenoud/structobject GitHub Wiki

structField Types

C Type Python Type structField Type Bytes
pad byte no value ctype_pad
char string ctype_char 1
signed char integer ctype_schar 1
unsigned char integer ctype_uchar 1
_Bool bool ctype_bool 1
short integer ctype_short 2
unsigned short integer ctype_ushort 2
int integer ctype_int 4
unsigned int integer ctype_uint 4
long integer ctype_long 4
unsigned long integer ctype_ulong 4
long long integer 8
unsigned long long integer 8
float float ctype_float 4
double float ctype_double 8

structField Methods

  • structField.get()
  • structField.set(value)
  • structField.prep()
  • structField.unprep(value)

structField Attributes

  • _parent - structObject container, or structArray container's parent
  • _variable_length - used for future support of array types, indicates field should not be included in static segment
  • _static - (bool) set during initialization, indicates whether value can be set
  • fmt - struct format code, set in factory
  • python_type - the python cast function, set in factory
  • value
  • getter
  • setter
  • generator
  • validator
  • doc