Lines Matching defs:out
46 out = args.output.write;
47 out('#include <stddef.h>\n')
48 out('#include <stdint.h>\n')
53 out('alignas({1:d}) static const uint8_t resource{0:d}[] = {{\n'
58 out(hex(b) + ',')
62 out('\n')
64 out('};\n')
65 out('static const size_t resource{0:d}_size = {1:d};\n'
70 out('struct SkEmbeddedResource { const uint8_t* d; const size_t s; };\n')
71 out('static const SkEmbeddedResource header[] = {\n')
74 out(' {{ resource{0:d}, resource{0:d}_size }},\n'.format(index))
76 out('};\n')
77 out('static const int header_count = {0:d};\n'.format(index))
80 out('struct SkEmbeddedHeader {const SkEmbeddedResource* e; const int c;};\n')
81 out('extern "C" const SkEmbeddedHeader {0:s} = {{ header, header_count }};\n'