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,6 +225,7 @@ class TrailingByteArray(Type):
|
|||
|
||||
@classmethod
|
||||
def write(cls, data:bytes, buffer:io.BytesIO):
|
||||
if data:
|
||||
buffer.write(data)
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue