Lines Matching refs:outfile
34 def write_code(outfile, marshalled: bytes, varname: str) -> None:
37 outfile.write(f"const unsigned char {varname}[] = {{\n")
40 outfile.write(" ")
41 outfile.write(",".join(str(i) for i in marshalled[n : n + 16]))
42 outfile.write(",\n")
43 outfile.write("};\n")
47 with open(outpath, "w") as outfile:
48 outfile.write(header)
49 outfile.write("\n")
51 write_code(outfile, marshalled, arrayname)