MCPcopy Create free account
hub / github.com/StevenWang30/R-PCC / write_bitstream

Function write_bitstream

utils/utils.py:28–34  ·  view source on GitHub ↗
(bitstream, info)

Source from the content-addressed store, hash-verified

26
27
28def write_bitstream(bitstream, info):
29 with bz2.open("myfile.bz2", "wb") as f:
30 # Write compressed data to file
31 unused = f.write(data)
32 with bz2.open("myfile.bz2", "rb") as f:
33 # Decompress data from file
34 content = f.read()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected