(fp, mod, data)
| 75 | # The array is called M_<mod>. |
| 76 | |
| 77 | def writecode(fp, mod, data): |
| 78 | print('unsigned char M_%s[] = {' % mod, file=fp) |
| 79 | indent = ' ' * 4 |
| 80 | for i in range(0, len(data), 16): |
| 81 | print(indent, file=fp, end='') |
| 82 | for c in bytes(data[i:i+16]): |
| 83 | print('%d,' % c, file=fp, end='') |
| 84 | print('', file=fp) |
| 85 | print('};', file=fp) |
no outgoing calls
no test coverage detected
searching dependent graphs…