HomeSort by relevance Sort by last modified time
    Searched refs:AllTypes (Results 1 - 12 of 12) sorted by null

  /external/nanopb-c/tests/backwards_compatibility/
alltypes_legacy.c 39 PB_FIELD( 1, INT32 , REQUIRED, STATIC, AllTypes, req_int32, req_int32, 0),
40 PB_FIELD( 2, INT64 , REQUIRED, STATIC, AllTypes, req_int64, req_int32, 0),
41 PB_FIELD( 3, UINT32 , REQUIRED, STATIC, AllTypes, req_uint32, req_int64, 0),
42 PB_FIELD( 4, UINT64 , REQUIRED, STATIC, AllTypes, req_uint64, req_uint32, 0),
43 PB_FIELD( 5, SINT32 , REQUIRED, STATIC, AllTypes, req_sint32, req_uint64, 0),
44 PB_FIELD( 6, SINT64 , REQUIRED, STATIC, AllTypes, req_sint64, req_sint32, 0),
45 PB_FIELD( 7, BOOL , REQUIRED, STATIC, AllTypes, req_bool, req_sint64, 0),
46 PB_FIELD( 8, FIXED32 , REQUIRED, STATIC, AllTypes, req_fixed32, req_bool, 0),
47 PB_FIELD( 9, SFIXED32, REQUIRED, STATIC, AllTypes, req_sfixed32, req_fixed32, 0),
48 PB_FIELD( 10, FLOAT , REQUIRED, STATIC, AllTypes, req_float, req_sfixed32, 0)
    [all...]
alltypes_legacy.h 133 } AllTypes;
162 STATIC_ASSERT((pb_membersize(AllTypes, req_submsg) < 256 && pb_membersize(AllTypes, rep_submsg[0]) < 256 && pb_membersize(AllTypes, opt_submsg) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_SubMessage_AllTypes)
166 STATIC_ASSERT((pb_membersize(AllTypes, req_submsg) < 65536 && pb_membersize(AllTypes, rep_submsg[0]) < 65536 && pb_membersize(AllTypes, opt_submsg) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_SubMessage_AllTypes)
encode_legacy.c 19 AllTypes alltypes = {0}; local
21 alltypes.req_int32 = -1001;
22 alltypes.req_int64 = -1002;
23 alltypes.req_uint32 = 1003;
24 alltypes.req_uint64 = 1004;
25 alltypes.req_sint32 = -1005;
26 alltypes.req_sint64 = -1006;
27 alltypes.req_bool = true;
29 alltypes.req_fixed32 = 1008
    [all...]
decode_legacy.c 25 AllTypes alltypes; local
28 memset(&alltypes, 0xAA, sizeof(alltypes));
30 if (!pb_decode(stream, AllTypes_fields, &alltypes))
33 TEST(alltypes.req_int32 == -1001);
34 TEST(alltypes.req_int64 == -1002);
35 TEST(alltypes.req_uint32 == 1003);
36 TEST(alltypes.req_uint64 == 1004);
37 TEST(alltypes.req_sint32 == -1005)
    [all...]
  /external/nanopb-c/tests/extensions/
encode_extensions.c 8 #include "alltypes.pb.h"
17 AllTypes alltypes = {0}; local
24 alltypes.extensions = &ext1;
38 if (pb_encode(&stream, AllTypes_fields, &alltypes))
decode_extensions.c 7 #include "alltypes.pb.h"
22 AllTypes alltypes = {0}; local
34 alltypes.extensions = &ext1;
45 if (!pb_decode(&stream, AllTypes_fields, &alltypes))
  /external/nanopb-c/tests/alltypes/
encode_alltypes.c 8 #include "alltypes.pb.h"
16 AllTypes alltypes = {0}; local
18 alltypes.req_int32 = -1001;
19 alltypes.req_int64 = -1002;
20 alltypes.req_uint32 = 1003;
21 alltypes.req_uint64 = 1004;
22 alltypes.req_sint32 = -1005;
23 alltypes.req_sint64 = -1006;
24 alltypes.req_bool = true
    [all...]
decode_alltypes.c 10 #include "alltypes.pb.h"
22 AllTypes alltypes; local
25 memset(&alltypes, 0xAA, sizeof(alltypes));
27 if (!pb_decode(stream, AllTypes_fields, &alltypes))
30 TEST(alltypes.req_int32 == -1001);
31 TEST(alltypes.req_int64 == -1002);
32 TEST(alltypes.req_uint32 == 1003);
33 TEST(alltypes.req_uint64 == 1004)
    [all...]
  /external/nanopb-c/tests/alltypes_pointer/
encode_alltypes_pointer.c 8 #include "alltypes.pb.h"
105 AllTypes alltypes = {0}; local
107 alltypes.req_int32 = &req_int32;
108 alltypes.req_int64 = &req_int64;
109 alltypes.req_uint32 = &req_uint32;
110 alltypes.req_uint64 = &req_uint64;
111 alltypes.req_sint32 = &req_sint32;
112 alltypes.req_sint64 = &req_sint64;
113 alltypes.req_bool = &req_bool
    [all...]
decode_alltypes_pointer.c 5 #include "alltypes.pb.h"
18 AllTypes alltypes; local
21 memset(&alltypes, 0xAA, sizeof(alltypes));
23 if (!pb_decode(stream, AllTypes_fields, &alltypes))
26 TEST(alltypes.req_int32 && *alltypes.req_int32 == -1001);
27 TEST(alltypes.req_int64 && *alltypes.req_int64 == -1002)
    [all...]
  /external/nanopb-c/tests/alltypes_callback/
decode_alltypes_callback.c 10 #include "alltypes.pb.h"
219 AllTypes alltypes; local
222 memset(&alltypes, 0xAA, sizeof(alltypes));
224 alltypes.req_int32.funcs.decode = &read_varint;
225 alltypes.req_int32.arg = (void*)-1001;
227 alltypes.req_int64.funcs.decode = &read_varint;
228 alltypes.req_int64.arg = (void*)-1002;
230 alltypes.req_uint32.funcs.decode = &read_varint
    [all...]
encode_alltypes_callback.c 10 #include "alltypes.pb.h"
206 AllTypes alltypes = {{{0}}}; local
208 alltypes.req_int32.funcs.encode = &write_varint;
209 alltypes.req_int32.arg = (void*)-1001;
211 alltypes.req_int64.funcs.encode = &write_varint;
212 alltypes.req_int64.arg = (void*)-1002;
214 alltypes.req_uint32.funcs.encode = &write_varint;
215 alltypes.req_uint32.arg = (void*)1003;
217 alltypes.req_uint32.funcs.encode = &write_varint
    [all...]

Completed in 382 milliseconds