ugh
This commit is contained in:
parent
7f3e58b7e6
commit
a84b723241
1 changed files with 2 additions and 4 deletions
|
@ -55,11 +55,9 @@ def mctype(slot_type:Any) -> Type:
|
||||||
if isinstance(slot_type, list):
|
if isinstance(slot_type, list):
|
||||||
name = slot_type[0]
|
name = slot_type[0]
|
||||||
if name == "buffer":
|
if name == "buffer":
|
||||||
data = slot_type[1]
|
if "countType" in slot_type[1] and slot_type[1]["countType"] == "integer":
|
||||||
if data["countType"] == "varint":
|
|
||||||
return ByteArray
|
|
||||||
elif data["countType"] == "integer":
|
|
||||||
return IntegerByteArray
|
return IntegerByteArray
|
||||||
|
return ByteArray
|
||||||
# TODO composite data types
|
# TODO composite data types
|
||||||
return TrailingByteArray
|
return TrailingByteArray
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue