mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 11:09:55 +00:00
0.6 final
This commit is contained in:
1 parent
7c0581eb97
commit
b89e1932bb
160 files changed
+20534
-4664
No files matched your search
@@ -36,7 +36,7 @@ def unmarshal_tlvs(data: bytes) -> list[TLV]:
|
||||
buf = buffer.Buffer(data)
|
||||
tlvs = []
|
||||
|
||||
while len(buf) > 4:
|
||||
while len(buf) >= 4:
|
||||
type = buf.read_u16()
|
||||
length = buf.read_u16()
|
||||
value = buf.read_bytes(length)
|
||||
@@ -51,4 +51,4 @@ def find_tlv(tlvs: list[TLV], type: int) -> Optional[TLV]:
|
||||
if tlv.type == type:
|
||||
return tlv
|
||||
|
||||
return None
|
||||
return None
|
||||
Reference in new issue
Block a user