/external/nanopb-c/tests/missing_fields/ |
missing_fields.c | 5 #include <pb_decode.h> 32 if (!pb_decode(&stream, MissingField_fields, &msg)) 44 if (pb_decode(&stream, AllFields_fields, &msg))
|
/external/nanopb-c/examples/using_double_on_avr/ |
decode_double.c | 6 #include <pb_decode.h> 17 pb_decode(&stream, AVRDoubleMessage_fields, &message);
|
/external/nanopb-c/examples/simple/ |
simple.c | 3 #include <pb_decode.h> 53 status = pb_decode(&stream, SimpleMessage_fields, &message);
|
Makefile | 12 CSRC += $(NANOPB_DIR)/pb_decode.c # The nanopb decoder
|
/external/nanopb-c/tests/decode_unittests/ |
decode_unittests.c | 2 #include "pb_decode.c" 205 COMMENT("Testing pb_decode with repeated int32 field") 206 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) 207 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) 210 TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) 212 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) 219 COMMENT("Testing pb_decode with packed int32 field") 220 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) 222 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) 224 TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields, &dest [all...] |
/external/nanopb-c/tests/basic_buffer/ |
decode_buffer.c | 10 #include <pb_decode.h> 21 if (!pb_decode(stream, Person_fields, &person))
|
/external/nanopb-c/examples/network_server/ |
client.c | 21 #include <pb_decode.h> 30 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) 73 if (!pb_decode(&input, ListFilesResponse_fields, &response))
|
common.c | 7 #include <pb_decode.h>
|
server.c | 21 #include <pb_decode.h> 56 if (!pb_decode(&input, ListFilesRequest_fields, &request))
|
/external/nanopb-c/examples/using_union_messages/ |
decode.c | 8 #include <pb_decode.h> 52 status = pb_decode(&substream, fields, dest_struct);
|
/external/nanopb-c/tests/basic_stream/ |
decode_stream.c | 5 #include <pb_decode.h> 17 if (!pb_decode(stream, Person_fields, &person))
|
/external/nanopb-c/tests/extensions/ |
decode_extensions.c | 6 #include <pb_decode.h> 45 if (!pb_decode(&stream, AllTypes_fields, &alltypes))
|
/external/nanopb-c/tests/callbacks/ |
decode_callbacks.c | 6 #include <pb_decode.h> 93 if (!pb_decode(&stream, TestMessage_fields, &testmessage))
|
/external/nanopb-c/ |
pb_decode.h | 0 /* pb_decode.h: Functions to decode protocol buffers. Depends on pb_decode.c. 2 * The main function is pb_decode. You also need an input stream, and the 66 * pb_decode(&stream, MyMessage_fields, &msg); 68 bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); 70 /* Same as pb_decode, except does not initialize the destination structure 82 /* Same as pb_decode, except expects the stream to start with the message size 91 * pb_decode() returns with an error, the message is already released.
|
pb_decode.c | 0 /* pb_decode.c -- decode a protobuf using minimal resources 17 #include "pb_decode.h" 893 bool checkreturn pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct) function 915 status = pb_decode(&substream, fields, dest_struct); [all...] |
/system/chre/build/ |
nanopb.mk | 35 COMMON_SRCS += $(NANOPB_PREFIX)/pb_decode.c
|
/external/nanopb-c/tests/alltypes_callback/ |
decode_alltypes_callback.c | 9 #include <pb_decode.h> 74 if (!pb_decode(stream, SubMessage_fields, &submsg)) 84 return pb_decode(stream, EmptyMessage_fields, &emptymsg); 148 if (!pb_decode(stream, SubMessage_fields, &decoded)) 158 if (!pb_decode(stream, Limits_fields, &decoded)) 396 return pb_decode(stream, AllTypes_fields, &alltypes);
|
/external/nanopb-c/extra/ |
nanopb.mk | 8 NANOPB_CORE = $(NANOPB_DIR)/pb_encode.c $(NANOPB_DIR)/pb_decode.c
|
/hardware/ril/libril/ |
sap_service.cpp | 24 #include "pb_decode.h" 548 if (!pb_decode(&stream, RIL_SIM_SAP_CONNECT_RSP_fields, responsePtr)) { 559 if (!pb_decode(&stream, RIL_SIM_SAP_DISCONNECT_RSP_fields, responsePtr)) { 567 if (!pb_decode(&stream, RIL_SIM_SAP_DISCONNECT_IND_fields, responsePtr)) { 578 if (!pb_decode(&stream, RIL_SIM_SAP_APDU_RSP_fields, responsePtr)) { 588 if (!pb_decode(&stream, RIL_SIM_SAP_TRANSFER_ATR_RSP_fields, responsePtr)) { 598 if (!pb_decode(&stream, RIL_SIM_SAP_POWER_RSP_fields, responsePtr)) { 608 if (!pb_decode(&stream, RIL_SIM_SAP_RESET_SIM_RSP_fields, responsePtr)) { 618 if (!pb_decode(&stream, RIL_SIM_SAP_STATUS_IND_fields, responsePtr)) { 628 if (!pb_decode(&stream, RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_RSP_fields [all...] |
/system/chre/platform/slpi/see/ |
see_helper.cc | 19 #include "pb_decode.h" 398 bool success = pb_decode(stream, sns_std_suid_fields, &suid); 425 bool success = pb_decode(stream, sns_suid_event_fields, &event); 563 success = pb_decode(stream, sns_std_attr_value_data_fields, &data->value); 613 success = pb_decode(stream, sns_std_attr_fields, &data->attr); 671 success = pb_decode(stream, sns_std_attr_event_fields, &data->event); 715 success = pb_decode(stream, sns_std_error_event_fields, &event); 866 bool success = pb_decode(stream, sns_std_sensor_physical_config_event_fields, 910 bool success = pb_decode(stream, sns_std_sensor_event_fields, &event); 957 bool success = pb_decode(stream, sns_cal_event_fields, &event) [all...] |
/external/nanopb-c/tests/alltypes/ |
decode_alltypes.c | 9 #include <pb_decode.h> 27 if (!pb_decode(stream, AllTypes_fields, &alltypes))
|
/external/nanopb-c/tests/alltypes_pointer/ |
decode_alltypes_pointer.c | 4 #include <pb_decode.h> 23 if (!pb_decode(stream, AllTypes_fields, &alltypes))
|
/external/nanopb-c/tests/backwards_compatibility/ |
decode_legacy.c | 12 #include <pb_decode.h> 30 if (!pb_decode(stream, AllTypes_fields, &alltypes))
|
/system/chre/platform/ |
platform.mk | 128 SLPI_SEE_SRCS += $(SLPI_PREFIX)/ssc/utils/nanopb/src/pb_decode.c
|