Add debug logging for cblock read()
This commit is contained in:
parent
af60d73427
commit
9133245d49
2 changed files with 12 additions and 10 deletions
|
|
@ -487,7 +487,9 @@ class CBlock(Record):
|
|||
compression_type = read_uint(stream)
|
||||
decompressed_count = read_uint(stream)
|
||||
compressed_bytes = read_bstring(stream)
|
||||
return CBlock(compression_type, decompressed_count, compressed_bytes)
|
||||
record = CBlock(compression_type, decompressed_count, compressed_bytes)
|
||||
logger.debug('CBlock ending at 0x{:x} was read successfully'.format(stream.tell()))
|
||||
return record
|
||||
|
||||
def write(self, stream: io.BufferedIOBase) -> int:
|
||||
size = write_uint(stream, 34)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue