Implement read for Int32 and StringDictionaryKey

This commit is contained in:
RunasSudo 2025-04-21 17:34:50 +10:00
parent 75685bb3cb
commit 1f3cafd8b3
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -130,7 +130,7 @@ class CslaBinaryReader:
raise NotImplementedError()
if known_type == CslaKnownTypes.Int32.value:
raise NotImplementedError()
return self.read_int32()
if known_type == CslaKnownTypes.UInt32.value:
raise NotImplementedError()
@ -185,7 +185,8 @@ class CslaBinaryReader:
return system_string
if known_type == CslaKnownTypes.StringDictionaryKey.value:
raise NotImplementedError()
dictionary_key = self.read_int32()
return self.keywords_dictionary[dictionary_key]
raise ValueError('Unexpected object tag {}'.format(known_type))