/nanopb-3.4.0/tests/site_scons/ |
D | site_init.py | 34 def run_test(target, source, env): argument 35 if len(source) > 1: 36 infile = open(str(source[1]), 'rb') 43 args = [str(source[0])] 68 def decode_actions(source, target, env, for_signature): argument 72 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 79 def encode_actions(source, target, env, for_signature): argument 83 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 90 def compare_files(target, source, env): argument 91 data1 = open(str(source[0]), 'rb').read() [all …]
|
/nanopb-3.4.0/tests/regression/issue_242/ |
D | zero_value.c | 16 Extendable source = {0}; in main() local 21 source.extensions = &source_ext; in main() 24 TEST(pb_encode(&ostream, Extendable_fields, &source)); in main() 38 PointerMessage source = {0}; in main() local 40 source.opt_int32 = &value; in main() 43 TEST(pb_encode(&ostream, PointerMessage_fields, &source)); in main()
|
/nanopb-3.4.0/tests/cxx_callback_datatype/ |
D | cxx_callback_datatype.cpp | 46 std::vector<int> source; in main() local 47 source.push_back(5); in main() 48 source.push_back(4); in main() 49 source.push_back(3); in main() 50 source.push_back(2); in main() 51 source.push_back(1); in main() 56 pb_encode(&sizestream, TestMessage_fields, &source); in main() 59 if (!pb_encode(&outstream, TestMessage_fields, &source)) { in main() 71 if (source != destination) { in main() 73 fprintf(stderr, "source(%d): ", (int)source.size()); in main() [all …]
|
D | SConscript | 27 p = e.Program(target = 'cxx_callback_datatype_{}'.format(std), source = objects)
|
/nanopb-3.4.0/tests/fuzztest/ |
D | SConscript | 21 lambda target, source, env: set_pkgname(source[0], target[0], 'alltypes_static')) 23 lambda target, source, env: set_pkgname(source[0], target[0], 'alltypes_pointer')) 30 lambda target, source, env: set_pkgname(source[0], target[0], 'alltypes_proto3_static')) 32 … lambda target, source, env: set_pkgname(source[0], target[0], 'alltypes_proto3_pointer')) 39 lambda target, source, env: set_pkgname(source[0], target[0], 'alltypes_callback')) 78 def run_against_corpus(target, source, env): 79 corpus = zipfile.ZipFile(str(source[1]), 'r') 81 args = [str(source[0])] 119 …' + str(args) + ' returned ' + str(result) + ' with input ' + filename + ' from ' + str(source[1])) 123 …print('\033[32m[ OK ]\033[0m Ran ' + str(args) + " against " + str(source[1]) + " (" + str(count…
|
/nanopb-3.4.0/tests/site_scons/site_tools/ |
D | nanopb.py | 134 def _nanopb_proto_actions(source, target, env, for_signature): argument 138 prefix = os.path.dirname(str(source[-1])) 139 srcfile = esc(os.path.relpath(str(source[0]), prefix)) 158 def _nanopb_proto_emitter(target, source, env): argument 159 basename = os.path.splitext(str(source[0]))[0] 168 source.append(File("SConscript")) 171 source.append(basename + '.options') 173 return target, source
|
/nanopb-3.4.0/tests/package_name/ |
D | SConscript | 15 lambda target, source, env: set_pkgname(source[0], target[0], 'test.package')) 20 def modify_c(target, source, env): 23 data = open(str(source[0]), 'r').read()
|
/nanopb-3.4.0/tests/package_name_nanopb/ |
D | SConscript | 17 lambda target, source, env: set_pkgname(source[0], target[0], 'test.package')) 22 def modify_c(target, source, env): 25 data = open(str(source[0]), 'r').read()
|
/nanopb-3.4.0/examples/platformio/ |
D | platformio.ini | 7 ; `$BUILD_DIR/nanopb/md5` - MD5 files to track changes in source .proto/.options 44 ; Warning: the 'src_filter' option cannot be used with ESP-IDF. Select source files to build in the… 45 ; So, we specified source files in src/CMakeLists.txt
|
/nanopb-3.4.0/tests/typename_mangling/ |
D | SConscript | 6 def command(target, source, env): 7 with open(str(source[0])) as src, open(str(target[0]), "w") as dst:
|
/nanopb-3.4.0/ |
D | LICENSE.txt | 16 2. Altered source versions must be plainly marked as such, and 19 3. This notice may not be removed or altered from any source
|
D | README.md | 38 python generator/nanopb_generator.py myprotocol.proto # For source checkout 46 using a git checkout or a plain source distribution, you will need to install 90 * **Bazel**: `BUILD` in source root 91 * **Conan**: `conanfile.py` in source root
|
D | pb_decode.c | 70 const pb_byte_t *source = (const pb_byte_t*)stream->state; in buf_read() local 75 memcpy(buf, source, count * sizeof(pb_byte_t)); in buf_read()
|
D | CHANGELOG.txt | 297 Add options to define source and header file extensions (#264)
|
/nanopb-3.4.0/extra/ |
D | FindNanopb.cmake | 18 # for the generated source and header files. These 26 # relative paths of source directories. 32 # NANOPB_FOUND - Found the nanopb library (source&header files, generator tool, protoc compiler t… 37 # NANOPB_GENERATOR_SOURCE_DIR - The nanopb generator source 44 # SRCS = Variable to define with autogenerated source files 86 # Redistribution and use in source and binary forms, with or without 90 # * Redistributions of source code must retain the above copyright 168 # Treat the source directory as immutable. 226 # generated source and header. 327 # Find nanopb source files [all …]
|
/nanopb-3.4.0/examples/conan_dependency/ |
D | conanfile.py | 24 def source(self): member in SimpleProtosConan
|
D | README.md | 18 conan source ..
|
/nanopb-3.4.0/generator/proto/google/protobuf/ |
D | descriptor.proto | 5 // Redistribution and use in source and binary forms, with or without 9 // * Redistributions of source code must retain the above copyright 62 optional string name = 1; // file name, relative to root of source tree 81 // This field contains optional information about the original source code. 499 // options below. This option is not yet implemented in the open source 713 // Optional source code info 715 // Encapsulates information about the original source file from which a 718 // A Location identifies a piece of source code in a .proto file which 848 // Describes the relationship between generated code and its original source 850 // source file, but may contain references to different source .proto files. [all …]
|
/nanopb-3.4.0/tests/any_type/google/protobuf/ |
D | duration.proto | 5 // Redistribution and use in source and binary forms, with or without 9 // * Redistributions of source code must retain the above copyright
|
D | any.proto | 5 // Redistribution and use in source and binary forms, with or without 9 // * Redistributions of source code must retain the above copyright
|
/nanopb-3.4.0/tests/generator_relative_paths/proto/protobuf/ |
D | any.proto | 5 // Redistribution and use in source and binary forms, with or without 9 // * Redistributions of source code must retain the above copyright
|
/nanopb-3.4.0/docs/ |
D | migration.md | 347 `PB_LTYPE_VARINT` in source), it may need updating. 541 assigned from external source, implement the field using a callback
|
D | reference.md | 573 [pb_encode_submessage](#pb_encode_submessage) source code for an 607 your field callbacks, because the source generator writes correct `LTYPE`
|