Home
last modified time | relevance | path

Searched refs:str (Results 1 – 21 of 21) sorted by relevance

/nanopb-3.4.0/tests/site_scons/
Dsite_init.py36 infile = open(str(source[1]), 'rb')
43 args = [str(source[0])]
51 print('Command line: ' + str(args))
54 stdout = open(str(target[0]), 'w'),
60 print('\033[31m[FAIL]\033[0m Program ' + args[0] + ' returned ' + str(result))
72 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0])))
83 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0])))
91 data1 = open(str(source[0]), 'rb').read()
92 data2 = open(str(source[1]), 'rb').read()
94 … print('\033[32m[ OK ]\033[0m Files equal: ' + str(source[0]) + ' and ' + str(source[1]))
[all …]
/nanopb-3.4.0/tests/callbacks/
Dencode_callbacks.c11 char *str = "Hello world!"; in encode_string() local
16 return pb_encode_string(stream, (uint8_t*)str, strlen(str)); in encode_string()
49 char *str[4] = {"Hello world!", "", "Test", "Test2"}; in encode_repeatedstring() local
57 if (!pb_encode_string(stream, (uint8_t*)str[i], strlen(str[i]))) in encode_repeatedstring()
/nanopb-3.4.0/tests/oneof_callback/
Dencode_oneof.c21 const char *str = *(const char**)field->pData; in SubMsg3_callback() local
26 return pb_encode_string(ostream, (const uint8_t*)str, strlen(str)); in SubMsg3_callback()
51 const char *str = "mystring"; in encode_string() local
56 return pb_encode_string(stream, (const uint8_t*)str, strlen(str)); in encode_string()
DSConscript19 e = env.RunTest("message%d.pb" % i, enc, ARGS = [str(i)])
/nanopb-3.4.0/tests/fuzztest/
DSConscript12 data = open(str(src)).read()
16 open(str(dst), 'w').write(data)
66 env.RunTest(fuzz, ARGS = [str(seed), str(iterations)])
71 env.RunTest(generate_message, ARGS = [str(seed)])
79 corpus = zipfile.ZipFile(str(source[1]), 'r')
81 args = [str(source[0])]
119 …033[31m[FAIL]\033[0m Program ' + str(args) + ' returned ' + str(result) + ' with input ' + filen…
122 open(str(target[0]), 'w').write(str(count))
123 …print('\033[32m[ OK ]\033[0m Ran ' + str(args) + " against " + str(source[1]) + " (" + str(count…
Dvalidation.c108 const char *str = pData; in validate_pointer() local
113 str = ((const char**)iter->pData)[i]; in validate_pointer()
116 assert(strlen(str) + 1 <= get_allocation_size(str)); in validate_pointer()
/nanopb-3.4.0/examples/platformio/src/
Dpio_with_options.c18 strcpy(original.str,"Hello"); in main()
32 TEST(strcmp(decoded.str,"Hello") == 0); in main()
/nanopb-3.4.0/tests/package_name/
DSConscript7 data = open(str(src)).read()
11 open(str(dst), 'w').write(data)
23 data = open(str(source[0]), 'r').read()
29 open(str(target[0]), 'w').write(data)
/nanopb-3.4.0/examples/platformio/proto/
Dpio_with_options.options1 TestMessageWithOptions.str max_size:16
Dpio_with_options.proto4 string str = 1; field
/nanopb-3.4.0/tests/package_name_nanopb/
DSConscript7 data = open(str(src)).read()
13 open(str(dst), 'w').write(data)
25 data = open(str(source[0]), 'r').read()
31 open(str(target[0]), 'w').write(data)
/nanopb-3.4.0/tests/site_scons/site_tools/
Dnanopb.py138 prefix = os.path.dirname(str(source[-1]))
139 srcfile = esc(os.path.relpath(str(source[0]), prefix))
147 source_extension = os.path.splitext(str(target[0]))[1]
159 basename = os.path.splitext(str(source[0]))[0]
160 source_extension = os.path.splitext(str(target[0]))[1]
/nanopb-3.4.0/generator/proto/
D_utils.py56 sys.stderr.write("Failed to determine protoc version: " + str(e) + "\n")
64 sys.stderr.write("Failed to determine python-protobuf version: " + str(e) + "\n")
D__init__.py92 sys.stderr.write("Failed to import nanopb_pb2.py: " + str(e) + "\n"
/nanopb-3.4.0/generator/
Dnanopb_generator.py180 word = str(word)
198 strtypes = (unicode, str)
200 def str(x): function
206 strtypes = (str, )
243 return str(self) < str(other)
258 raise ValueError("Value too large for varint: " + str(max_value))
275 self.symbols = [str(value)]
278 self.required_defines = [str(value)]
289 …eturn EncodedSize(self.value, self.symbols + [str(other)], self.declarations, self.required_define…
298 return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols],
[all …]
/nanopb-3.4.0/tests/typename_mangling/
DSConscript7 with open(str(source[0])) as src, open(str(target[0]), "w") as dst:
/nanopb-3.4.0/tests/
DSConstruct45 print("Supported platforms: " + str(platforms.keys()))
94 context.Result(str(output.strip()))
95 return str(output.strip())
241 if str(subdir).startswith("common/"): continue
242 if str(subdir).startswith("common\\"): continue
243 …ipt(subdir, exports = 'env', variant_dir = env['VARIANT_DIR'] + '/' + os.path.dirname(str(subdir)))
/nanopb-3.4.0/extra/bazel/
Dnanopb_cc_proto_library.bzl26 toolchains = [str(Label("@rules_proto_grpc//protobuf:toolchain_type"))],
/nanopb-3.4.0/
Dpb_encode.c880 const char *str = (const char*)field->pData; in pb_enc_string() local
900 if (str == NULL) in pb_enc_string()
906 const char *p = str; in pb_enc_string()
922 if (!pb_validate_utf8(str)) in pb_enc_string()
926 return pb_encode_string(stream, (const pb_byte_t*)str, size); in pb_enc_string()
Dpb_common.c334 bool pb_validate_utf8(const char *str) in pb_validate_utf8() argument
336 const pb_byte_t *s = (const pb_byte_t*)str; in pb_validate_utf8()
/nanopb-3.4.0/docs/
Dconcepts.md287 char *str = get_string_from_somewhere();
291 return pb_encode_string(stream, (uint8_t*)str, strlen(str));