Implement read for ListOfInt

This commit is contained in:
RunasSudo 2025-04-21 18:14:32 +10:00
parent 5801539bb0
commit 0d25c9b6cc
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -183,7 +183,8 @@ class CslaBinaryReader:
raise NotImplementedError() raise NotImplementedError()
if known_type == CslaKnownTypes.ListOfInt.value: if known_type == CslaKnownTypes.ListOfInt.value:
raise NotImplementedError() length = self.read_int32()
return [self.read_int32() for _ in range(length)]
if known_type == CslaKnownTypes.Null.value: if known_type == CslaKnownTypes.Null.value:
raise NotImplementedError() raise NotImplementedError()