def _loadFromHType(self, dtype: HdlType, bitAddr: int) -> None:
self.bitAddr = bitAddr<EOL>childrenAreChoice = False<EOL>if isinstance(dtype, Bits):<EOL><INDENT>ld = self._loadFromBits<EOL><DEDENT>elif isinstance(dtype, HStruct):<EOL><INDENT>ld = self._loadFromHStruct<EOL><DEDENT>elif isinstance(dtype, HArray):<EOL><INDENT>ld = self._loadFromArray<EOL><DEDENT>elif isinstance(dtype, HStream):<EOL><INDENT>ld = self._loadFromHStream<EOL><DEDENT>elif isinstance(dtype, HUnion):<EOL><INDENT>ld = self._loadFromUnion<EOL>childrenAreChoice = True<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>", dtype)<EOL><DEDENT>self.bitAddrEnd = ld(dtype, bitAddr)<EOL>self.childrenAreChoice = childrenAreChoice<EOL>
Parse any HDL type to this transaction template instance