/nanopb-3.4.0/tests/basic_buffer/ |
D | decode_buffer.c | 26 printf("name: \"%s\"\n", person.name); in print_person() 27 printf("id: %ld\n", (long)person.id); in print_person() 30 printf("email: \"%s\"\n", person.email); in print_person() 35 printf("phone {\n"); in print_person() 36 printf(" number: \"%s\"\n", phone->number); in print_person() 43 printf(" type: WORK\n"); in print_person() 47 printf(" type: HOME\n"); in print_person() 51 printf(" type: MOBILE\n"); in print_person() 55 printf("}\n"); in print_person() 73 printf("Message does not fit in buffer\n"); in main() [all …]
|
/nanopb-3.4.0/tests/basic_stream/ |
D | decode_stream.c | 22 printf("name: \"%s\"\n", person.name); in print_person() 23 printf("id: %ld\n", (long)person.id); in print_person() 26 printf("email: \"%s\"\n", person.email); in print_person() 31 printf("phone {\n"); in print_person() 32 printf(" number: \"%s\"\n", phone->number); in print_person() 39 printf(" type: WORK\n"); in print_person() 43 printf(" type: HOME\n"); in print_person() 47 printf(" type: MOBILE\n"); in print_person() 51 printf("}\n"); in print_person() 82 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
|
/nanopb-3.4.0/tests/raw_decode/ |
D | raw_decode.c | 52 printf("LATEST BYTES READ (%d to %d): ", position, g_position); in print_history() 56 printf("%02x ", g_history[i]); in print_history() 59 printf("\n"); in print_history() 81 printf("ERROR: Failed to parse tag: %s\n", PB_GET_ERROR(stream)); in raw_decode() 89 printf("%sterminating on zero tag\n", indent); in raw_decode() 93 printf("%sAt %d: field tag %d, wire type %d (%s)", in raw_decode() 102 printf("\n%sERROR: Failed to parse varint: %s\n", indent, PB_GET_ERROR(stream)); in raw_decode() 107 printf(", varint value (%d bytes): %llu\n", in raw_decode() 116 printf("\n%sERROR: Failed to parse fixed64: %s\n", indent, PB_GET_ERROR(stream)); in raw_decode() 121 printf(", fixed64 value (%d bytes): 0x%016llx\n", in raw_decode() [all …]
|
/nanopb-3.4.0/tests/oneof_callback/ |
D | decode_oneof.c | 36 printf(" strvalue: \"%s\"\n", buffer); in SubMsg3_callback() 51 printf((char*)*arg, (int)value); in print_int32() 71 printf((char*)*arg, buffer); in print_string() 88 printf("prefix: %d\n", (int)topmsg->prefix); in msg_callback() 93 printf("submsg1 {\n"); in msg_callback() 100 printf("submsg2 {\n"); in msg_callback() 110 printf("submsg3 {\n"); in msg_callback() 150 printf("prefix: %d\n", (int)msg.prefix); in main() 151 printf("intvalue: %d\n", (int)msg.values.intvalue); in main() 155 printf("prefix: %d\n", (int)msg.prefix); in main() [all …]
|
/nanopb-3.4.0/tests/regression/issue_504/ |
D | test.c | 31 printf("%p: '%s'\n", msg.submessage.somestring, msg.submessage.somestring); in main() 41 printf("response payload (%d):", (int)ostream.bytes_written); in main() 43 printf("%02X", buffer[i]); in main() 45 printf("\n"); in main() 67 printf("response payload (%d):", (int)ostream.bytes_written); in main() 69 printf("%02X", buffer[i]); in main() 71 printf("\n"); in main()
|
/nanopb-3.4.0/tests/common/ |
D | unittests.h | 5 #define COMMENT(x) printf("\n----" x "----\n"); 11 printf("OK: Line %d\n", __LINE__); \ 17 #define COMMENT(x) printf("\n----" x "----\n"); 23 printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
|
/nanopb-3.4.0/tests/msgid/ |
D | decode_msgid.c | 30 printf("Got MyMessage1: intvalue = %d\n", (int)msg.intvalue); in handle_MyMessage1() 41 printf("Got MyMessage2: intvalue = %d, strvalue = %s\n", in handle_MyMessage2() 53 printf("Got MyMessage3: boolvalue = %d\n", (int)msg.boolvalue); in handle_MyMessage3() 71 printf("Message does not fit in buffer\n"); in main() 79 printf("Failed to read prefix: %s\n", PB_GET_ERROR(&stream)); in main() 95 default: printf("Unknown prefix: %d\n", prefix); return 1; in main() 100 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
|
/nanopb-3.4.0/tests/regression/issue_395/ |
D | test.c | 26 printf("response payload (%d):", (int)ostream.bytes_written); in main() 28 printf("%02X", buffer[i]); in main() 30 printf("\n"); in main()
|
/nanopb-3.4.0/tests/missing_fields/ |
D | missing_fields.c | 20 printf("Encode failed.\n"); in main() 34 printf("Decode failed: %s\n", PB_GET_ERROR(&stream)); in main() 46 printf("Decode didn't detect missing field.\n"); in main()
|
/nanopb-3.4.0/examples/cmake_relpath/ |
D | simple.c | 38 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 62 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 67 printf("Your lucky number was %d!\n", message.lucky_number); in main() 68 printf("Your unlucky number was %u!\n", message.unlucky.number); in main()
|
/nanopb-3.4.0/examples/using_union_messages/ |
D | decode.c | 70 printf("Got MsgType1: %d\n", msg.value); in main() 76 printf("Got MsgType2: %s\n", msg.value ? "true" : "false"); in main() 82 printf("Got MsgType3: %d %d\n", msg.value1, msg.value2); in main() 87 printf("Decode failed: %s\n", PB_GET_ERROR(&stream)); in main()
|
/nanopb-3.4.0/examples/simple/ |
D | simple.c | 37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 66 printf("Your lucky number was %d!\n", (int)message.lucky_number); in main()
|
/nanopb-3.4.0/examples/cmake_simple/ |
D | simple.c | 37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 66 printf("Your lucky number was %d!\n", message.lucky_number); in main()
|
/nanopb-3.4.0/examples/conan_dependency/src/ |
D | simple.c | 37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main() 66 printf("Your lucky number was %d!\n", message.lucky_number); in main()
|
/nanopb-3.4.0/tests/callbacks/ |
D | decode_callbacks.c | 24 printf((char*)*arg, buffer); in print_string() 34 printf((char*)*arg, (long)value); in print_int32() 44 printf((char*)*arg, (long)value); in print_fixed32() 54 printf((char*)*arg, (long)value); in print_fixed64()
|
/nanopb-3.4.0/examples/network_server/ |
D | server.c | 79 printf("Decode failed: %s\n", PB_GET_ERROR(&input)); in handle_connection() 84 printf("Listing directory: %s\n", request.path); in handle_connection() 109 printf("Encoding failed: %s\n", PB_GET_ERROR(&output)); in handle_connection() 154 printf("Got connection.\n"); in main() 158 printf("Closing connection.\n"); in main()
|
/nanopb-3.4.0/examples/platformio/src/ |
D | test.h | 8 printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
|
/nanopb-3.4.0/tests/regression/issue_494/ |
D | oneof_size.cc | 15 printf("Size: %d\n", (int)MyMessage_size); in main()
|
/nanopb-3.4.0/tests/oneof/ |
D | decode_oneof.c | 22 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_1() 63 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_2() 109 printf("Message does not fit in buffer\n"); in main()
|
/nanopb-3.4.0/tests/anonymous_oneof/ |
D | decode_oneof.c | 22 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_1() 72 printf("Message does not fit in buffer\n"); in main()
|
/nanopb-3.4.0/.github/workflows/ |
D | python2_tests.yml | 33 export GENPATH=$(bash -c 'printf %q "$(pwd)/generator/protoc-gen-nanopb-py2"')
|
/nanopb-3.4.0/tests/any_type/ |
D | decode_any.c | 25 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
|
/nanopb-3.4.0/tests/extensions/ |
D | decode_extensions.c | 44 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
|
/nanopb-3.4.0/tests/map/ |
D | decode_map.c | 36 printf("Message does not fit in buffer\n"); in main()
|
/nanopb-3.4.0/tests/stackusage/ |
D | stackusage.c | 90 printf("%d %d\n", stack_encode, stack_decode); in main()
|