MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_encoder_op_name

Function xo_encoder_op_name

tools/libxo/libxo/xo_encoder.c:389–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389const char *
390xo_encoder_op_name (xo_encoder_op_t op)
391{
392 static const char *names[] = {
393 /* 0 */ "unknown",
394 /* 1 */ "create",
395 /* 2 */ "open_container",
396 /* 3 */ "close_container",
397 /* 4 */ "open_list",
398 /* 5 */ "close_list",
399 /* 6 */ "open_leaf_list",
400 /* 7 */ "close_leaf_list",
401 /* 8 */ "open_instance",
402 /* 9 */ "close_instance",
403 /* 10 */ "string",
404 /* 11 */ "content",
405 /* 12 */ "finish",
406 /* 13 */ "flush",
407 /* 14 */ "destroy",
408 /* 15 */ "attr",
409 /* 16 */ "version",
410 /* 17 */ "options",
411 };
412
413 if (op > sizeof(names) / sizeof(names[0]))
414 return "unknown";
415
416 return names[op];
417}

Callers 3

cbor_handlerFunction · 0.85
test_handlerFunction · 0.85
csv_handlerFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_handlerFunction · 0.68