cbadc.utilities.write_byte_stream_to_files
- cbadc.utilities.write_byte_stream_to_files(filename: str, iterator: Iterator[bytes], words_per_file: int = 100000)[source]
Write a stream into a sequence of binary files of size words_per_file.
- Parameters
filename (str) – filename for output file
iterator ([bytes]) – an iterator of bytes to write to files
words_per_file (int) – number of words to be written per file, defaults to 100000. For byte-sized words the default corresponds to 100MB files.