INNER CODE UNIT · Python

col

cadaver/turso3d · ThirdParty/SDL/cmake/xxd.py:24

            col = bytes_written % args.columns
            if col == 0:
                fout.write("  ")
            column_data = binary_data[bytes_written:bytes_written+args.columns]
            fout.write(", ".join("0x{:02x}".format(d) for d in column_data))
            bytes_written += len(column_data)
            if bytes_written < len(binary_data):
                fout.write(",\n")
            else:
                fout.write("\n")
        fout.write("}};\nunsigned int {}_len = {:d};\n".format(varname, len(binary_data)))

if __name__ == "__main__":
    raise SystemExit(main())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…