MCPcopy Create free account
hub / github.com/buke/quickjs-go / dump_byte_table

Function dump_byte_table

deps/quickjs/unicode_gen.c:1457–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1455}
1456
1457void dump_byte_table(FILE *f, const char *cname, const uint8_t *tab, int len)
1458{
1459 int i;
1460 fprintf(f, "static const uint8_t %s[%d] = {", cname, len);
1461 for(i = 0; i < len; i++) {
1462 if (i % 8 == 0)
1463 fprintf(f, "\n ");
1464 fprintf(f, " 0x%02x,", tab[i]);
1465 }
1466 fprintf(f, "\n};\n\n");
1467}
1468
1469#define PROP_BLOCK_LEN 32
1470

Callers 5

build_prop_tableFunction · 0.85
build_script_tableFunction · 0.85
build_script_ext_tableFunction · 0.85
build_cc_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected