Home
last modified time | relevance | path

Searched refs:opt_bytes (Results 1 – 15 of 15) sorted by relevance

/external/nanopb-c/tests/alltypes_pointer/
Ddecode_alltypes_pointer.c98 TEST(alltypes.opt_bytes == NULL); in check_alltypes()
121 TEST(alltypes.opt_bytes && alltypes.opt_bytes->size == 4); in check_alltypes()
122 TEST(alltypes.opt_bytes && memcmp(&alltypes.opt_bytes->bytes, "3055", 4) == 0); in check_alltypes()
Dencode_alltypes_pointer.c81 PB_BYTES_ARRAY_T(4) opt_bytes = {4, {'3', '0', '5', '5'}}; in main()
163 alltypes.opt_bytes = (pb_bytes_array_t*)&opt_bytes; in main()
/external/protobuf/js/binary/
Ddecoder.js223 jspb.BinaryDecoder = function(opt_bytes, opt_start, opt_length) { argument
268 if (opt_bytes) {
269 this.setBlock(opt_bytes, opt_start, opt_length);
290 jspb.BinaryDecoder.alloc = function(opt_bytes, opt_start, opt_length) { argument
293 if (opt_bytes) {
294 newDecoder.setBlock(opt_bytes, opt_start, opt_length);
298 return new jspb.BinaryDecoder(opt_bytes, opt_start, opt_length);
Dreader.js66 jspb.BinaryReader = function(opt_bytes, opt_start, opt_length) { argument
71 this.decoder_ = jspb.BinaryDecoder.alloc(opt_bytes, opt_start, opt_length);
123 function(opt_bytes, opt_start, opt_length) { argument
126 if (opt_bytes) {
127 newReader.decoder_.setBlock(opt_bytes, opt_start, opt_length);
131 return new jspb.BinaryReader(opt_bytes, opt_start, opt_length);
/external/nanopb-c/tests/backwards_compatibility/
Ddecode_legacy.c119 TEST(alltypes.opt_bytes.size == 4); in check_alltypes()
120 TEST(memcmp(alltypes.opt_bytes.bytes, "4055", 4) == 0); in check_alltypes()
163 TEST(alltypes.opt_bytes.size == 4); in check_alltypes()
164 TEST(memcmp(alltypes.opt_bytes.bytes, "3055", 4) == 0); in check_alltypes()
Dencode_legacy.c107 alltypes.opt_bytes.size = 4; in main()
108 memcpy(alltypes.opt_bytes.bytes, "3055", 4); in main()
Dalltypes_legacy.c87 …PB_FIELD( 55, BYTES , OPTIONAL, STATIC, AllTypes, opt_bytes, opt_string, &AllTypes_opt_bytes_def…
88 PB_FIELD( 56, MESSAGE , OPTIONAL, STATIC, AllTypes, opt_submsg, opt_bytes, &SubMessage_fields),
Dalltypes_legacy.h127 AllTypes_opt_bytes_t opt_bytes; member
/external/nanopb-c/tests/alltypes/
Ddecode_alltypes.c117 TEST(alltypes.opt_bytes.size == 4); in check_alltypes()
118 TEST(memcmp(alltypes.opt_bytes.bytes, "4055", 4) == 0); in check_alltypes()
162 TEST(alltypes.opt_bytes.size == 4); in check_alltypes()
163 TEST(memcmp(alltypes.opt_bytes.bytes, "3055", 4) == 0); in check_alltypes()
Dencode_alltypes.c116 alltypes.opt_bytes.size = 4; in main()
117 memcpy(alltypes.opt_bytes.bytes, "3055", 4); in main()
Dalltypes.proto99 optional bytes opt_bytes = 55 [default = "4055"]; field
/external/nanopb-c/tests/field_size_32/
Dalltypes.proto99 optional bytes opt_bytes = 10055 [default = "4055"]; field
/external/nanopb-c/tests/field_size_16/
Dalltypes.proto99 optional bytes opt_bytes = 10055 [default = "4055"]; field
/external/nanopb-c/tests/alltypes_callback/
Dencode_alltypes_callback.c365 alltypes.opt_bytes.funcs.encode = &write_string; in main()
366 alltypes.opt_bytes.arg = "3055"; in main()
Ddecode_alltypes_callback.c384 alltypes.opt_bytes.funcs.decode = &read_string; in check_alltypes()
385 alltypes.opt_bytes.arg = "3055"; in check_alltypes()