Home
last modified time | relevance | path

Searched refs:source (Results 1 – 20 of 20) sorted by relevance

/nanopb-2.7.6/tests/site_scons/
Dsite_init.py29 def run_test(target, source, env): argument
30 if len(source) > 1:
31 infile = open(str(source[1]))
38 args = [str(source[0])]
63 def decode_actions(source, target, env, for_signature): argument
67 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0])))
74 def encode_actions(source, target, env, for_signature): argument
78 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0])))
85 def compare_files(target, source, env): argument
86 data1 = open(str(source[0]), 'rb').read()
[all …]
/nanopb-2.7.6/tests/cxx_callback_datatype/
Dcxx_callback_datatype.cpp46 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 …]
DSConscript27 p = e.Program(target = 'cxx_callback_datatype_{}'.format(std), source = objects)
/nanopb-2.7.6/tests/regression/issue_242/
Dzero_value.c16 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-2.7.6/tests/fuzztest/
DSConscript21 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-2.7.6/tests/site_scons/site_tools/
Dnanopb.py133 def _nanopb_proto_actions(source, target, env, for_signature): argument
137 prefix = os.path.dirname(str(source[-1]))
138 srcfile = esc(os.path.relpath(str(source[0]), prefix))
157 def _nanopb_proto_emitter(target, source, env): argument
158 basename = os.path.splitext(str(source[0]))[0]
167 source.append(File("SConscript"))
170 source.append(basename + '.options')
172 return target, source
/nanopb-2.7.6/tests/package_name/
DSConscript15 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-2.7.6/tests/package_name_nanopb/
DSConscript17 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-2.7.6/tests/typename_mangling/
DSConscript6 def command(target, source, env):
7 with open(str(source[0])) as src, open(str(target[0]), "w") as dst:
/nanopb-2.7.6/
DLICENSE.txt16 2. Altered source versions must be plainly marked as such, and
19 3. This notice may not be removed or altered from any source
DREADME.md36 python generator/nanopb_generator.py myprotocol.proto # For source checkout
44 using a git checkout or a plain source distribution, you will need to install
88 * **Bazel**: `BUILD` in source root
89 * **Conan**: `conanfile.py` in source root
Dpb_decode.c73 const pb_byte_t *source = (const pb_byte_t*)stream->state; in buf_read() local
79 buf[i] = source[i]; in buf_read()
DCHANGELOG.txt222 Add options to define source and header file extensions (#264)
/nanopb-2.7.6/extra/
DFindNanopb.cmake18 # for the generated source and header files. These
26 # relative paths of source directories.
31 # NANOPB_FOUND - Found the nanopb library (source&header files, generator tool, protoc compiler t…
36 # NANOPB_GENERATOR_SOURCE_DIR - The nanopb generator source
43 # SRCS = Variable to define with autogenerated source files
85 # Redistribution and use in source and binary forms, with or without
89 # * Redistributions of source code must retain the above copyright
165 # Treat the source diretory as immutable.
226 # generated source and header.
324 # Find nanopb source files
[all …]
/nanopb-2.7.6/generator/proto/google/protobuf/
Ddescriptor.proto5 // 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-2.7.6/tests/any_type/google/protobuf/
Dduration.proto5 // Redistribution and use in source and binary forms, with or without
9 // * Redistributions of source code must retain the above copyright
Dany.proto5 // Redistribution and use in source and binary forms, with or without
9 // * Redistributions of source code must retain the above copyright
/nanopb-2.7.6/tests/generator_relative_paths/proto/protobuf/
Dany.proto5 // Redistribution and use in source and binary forms, with or without
9 // * Redistributions of source code must retain the above copyright
/nanopb-2.7.6/docs/
Dmigration.md290 `PB_LTYPE_VARINT` in source), it may need updating.
484 assigned from external source, implement the field using a callback
Dreference.md560 [pb_encode_submessage](#pb_encode_submessage) source code for an
594 your field callbacks, because the source generator writes correct `LTYPE`