Implement read for Int32 and StringDictionaryKey
This commit is contained in:
parent
75685bb3cb
commit
1f3cafd8b3
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user