DCPackerInterface
from panda3d.direct import DCPackerInterface
- class DCPackerInterface
- Bases: - DTOOL_SUPER_BASE- This defines the internal interface for packing values into a DCField. The various different DC objects inherit from this. - Normally these methods are called only by the DCPacker object; the user wouldn’t normally call these directly. - Inheritance diagram - __init__(*args, **kwargs)
 - asClassParameter()
- C++ Interface: as_class_parameter(const DCPackerInterface self) as_class_parameter(DCPackerInterface self) 
 - asField()
- C++ Interface: as_field(const DCPackerInterface self) as_field(DCPackerInterface self) 
 - asSwitchParameter()
- C++ Interface: as_switch_parameter(const DCPackerInterface self) as_switch_parameter(DCPackerInterface self) 
 - as_class_parameter()
- C++ Interface: as_class_parameter(const DCPackerInterface self) as_class_parameter(DCPackerInterface self) 
 - as_field()
- C++ Interface: as_field(const DCPackerInterface self) as_field(DCPackerInterface self) 
 - as_switch_parameter()
- C++ Interface: as_switch_parameter(const DCPackerInterface self) as_switch_parameter(DCPackerInterface self) 
 - checkMatch()
- C++ Interface: check_match(DCPackerInterface self, str description, DCFile dcfile) check_match(DCPackerInterface self, const DCPackerInterface other) - /**
- Returns true if the other interface is bitwise the same as this one–that 
- is, a uint32 only matches a uint32, etc. Names of components, and range 
- limits, are not compared. 
 - */ 
- /**
- Returns true if this interface is bitwise the same as the interface 
- described with the indicated formatted string, e.g. “(uint8, uint8, 
- int16)”, or false otherwise. 
- If DCFile is not NULL, it specifies the DCFile that was previously loaded, 
- from which some predefined structs and typedefs may be referenced in the 
- description string. 
 - */ 
 
 - check_match()
- C++ Interface: check_match(DCPackerInterface self, str description, DCFile dcfile) check_match(DCPackerInterface self, const DCPackerInterface other) - /**
- Returns true if the other interface is bitwise the same as this one–that 
- is, a uint32 only matches a uint32, etc. Names of components, and range 
- limits, are not compared. 
 - */ 
- /**
- Returns true if this interface is bitwise the same as the interface 
- described with the indicated formatted string, e.g. “(uint8, uint8, 
- int16)”, or false otherwise. 
- If DCFile is not NULL, it specifies the DCFile that was previously loaded, 
- from which some predefined structs and typedefs may be referenced in the 
- description string. 
 - */ 
 
 - findSeekIndex()
- C++ Interface: find_seek_index(DCPackerInterface self, str name) - /**
- Returns the index number to be passed to a future call to DCPacker::seek() 
- to seek directly to the named field without having to look up the field 
- name in a table later, or -1 if the named field cannot be found. 
- If the named field is nested within a switch or some similar dynamic 
- structure that reveals different fields based on the contents of the data, 
- this mechanism cannot be used to pre-fetch the field index number–you must 
- seek for the field by name. 
 - */ 
 
 - find_seek_index()
- C++ Interface: find_seek_index(DCPackerInterface self, str name) - /**
- Returns the index number to be passed to a future call to DCPacker::seek() 
- to seek directly to the named field without having to look up the field 
- name in a table later, or -1 if the named field cannot be found. 
- If the named field is nested within a switch or some similar dynamic 
- structure that reveals different fields based on the contents of the data, 
- this mechanism cannot be used to pre-fetch the field index number–you must 
- seek for the field by name. 
 - */ 
 
 
