mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-08-28 05:14:11 -05:00
Add decopmressed encoding; add decompressed test cases
This commit is contained in:
committed by
Jennifer Taylor
parent
036bf1ce20
commit
224ed0e2a8
@@ -128,6 +128,20 @@ class OutputStream:
|
||||
self.__formatted_data = b''.join(self.__data)
|
||||
return self.__formatted_data
|
||||
|
||||
def write_blob(self, blob: bytes) -> int:
|
||||
"""
|
||||
Write a binary blob of data to the stream
|
||||
|
||||
Parameters:
|
||||
blob - An blob of data to write.
|
||||
|
||||
Returns:
|
||||
the number of bytes written
|
||||
"""
|
||||
self.__data.append(blob)
|
||||
self.__data_len += len(blob)
|
||||
return len(blob)
|
||||
|
||||
def write_byte(self, byte: bytes) -> None:
|
||||
"""
|
||||
Write a raw byte to the end of the output stream.
|
||||
|
||||
Reference in New Issue
Block a user