Lines Matching full:write
8 fragmented packets in C, it is much harder to read and write
10 easy to read / write.
12 So we choose to write this script that generates a valid C
33 f.write("// SPDX-License-Identifier: GPL-2.0\n")
34 f.write("/* DO NOT EDIT -- this file is generated */\n")
35 f.write("\n")
36 f.write("#ifndef _IP_CHECK_DEFRAG_FRAGS_H\n")
37 f.write("#define _IP_CHECK_DEFRAG_FRAGS_H\n")
38 f.write("\n")
39 f.write("#include <stdint.h>\n")
40 f.write("\n")
50 f.write(f"static uint8_t frag{suffix}_{idx}[] = {{\n")
52 f.write(f"\t{chunk},\n")
53 f.write(f"}};\n")
57 f.write("\n")
58 f.write("#endif /* _IP_CHECK_DEFRAG_FRAGS_H */\n")