91 """Generates C++ file based on a input_cc_file template and two binary files
93 Template is expected to have two %s placeholders which would be filled
94 with binary contents of the given files each formatted as a comma separated
97 snapshot_cc_text = open(input_cc_file).
read()
98 chunks = snapshot_cc_text.split(
"%s")
100 raise Exception(
"Template %s should contain exactly two %%s occurrences"
103 with open(output_file,
'w')
as out: