TrailingByteArray won't fail on null fields
This commit is contained in:
parent
3451cefd5c
commit
d1d1eb5ca1
1 changed files with 2 additions and 1 deletions
|
@ -225,7 +225,8 @@ class TrailingByteArray(Type):
|
|||
|
||||
@classmethod
|
||||
def write(cls, data:bytes, buffer:io.BytesIO):
|
||||
buffer.write(data)
|
||||
if data:
|
||||
buffer.write(data)
|
||||
|
||||
@classmethod
|
||||
def read(cls, buffer:io.BytesIO) -> bytes:
|
||||
|
|
Loading…
Reference in a new issue