/nanopb-2.7.6/tests/site_scons/ |
D | site_init.py | 31 infile = open(str(source[1])) 38 args = [str(source[0])] 46 print('Command line: ' + str(args)) 49 stdout = open(str(target[0]), 'w'), 55 print('\033[31m[FAIL]\033[0m Program ' + args[0] + ' returned ' + str(result)) 67 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 78 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 86 data1 = open(str(source[0]), 'rb').read() 87 data2 = open(str(source[1]), 'rb').read() 89 … print('\033[32m[ OK ]\033[0m Files equal: ' + str(source[0]) + ' and ' + str(source[1])) [all …]
|
/nanopb-2.7.6/tests/callbacks/ |
D | encode_callbacks.c | 11 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-2.7.6/tests/oneof_callback/ |
D | encode_oneof.c | 21 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()
|
D | SConscript | 19 e = env.RunTest("message%d.pb" % i, enc, ARGS = [str(i)])
|
/nanopb-2.7.6/tests/fuzztest/ |
D | SConscript | 12 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…
|
D | validation.c | 108 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-2.7.6/tests/package_name/ |
D | SConscript | 7 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-2.7.6/tests/package_name_nanopb/ |
D | SConscript | 7 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-2.7.6/tests/site_scons/site_tools/ |
D | nanopb.py | 137 prefix = os.path.dirname(str(source[-1])) 138 srcfile = esc(os.path.relpath(str(source[0]), prefix)) 146 source_extension = os.path.splitext(str(target[0]))[1] 158 basename = os.path.splitext(str(source[0]))[0] 159 source_extension = os.path.splitext(str(target[0]))[1]
|
/nanopb-2.7.6/generator/ |
D | nanopb_generator.py | 155 strtypes = (unicode, str) 158 strtypes = (str, ) 190 return str(self) < str(other) 205 raise ValueError("Value too large for varint: " + str(max_value)) 222 self.symbols = [str(value)] 225 self.required_defines = [str(value)] 236 …eturn EncodedSize(self.value, self.symbols + [str(other)], self.declarations, self.required_define… 245 return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols], 252 return str(self.value) 254 return '(' + str(self.value) + ' + ' + ' + '.join(self.symbols) + ')' [all …]
|
/nanopb-2.7.6/tests/typename_mangling/ |
D | SConscript | 7 with open(str(source[0])) as src, open(str(target[0]), "w") as dst:
|
/nanopb-2.7.6/tests/ |
D | SConstruct | 45 print("Supported platforms: " + str(platforms.keys())) 94 context.Result(str(output.strip())) 95 return str(output.strip()) 233 if str(subdir).startswith("common/"): continue 234 if str(subdir).startswith("common\\"): continue 235 …ipt(subdir, exports = 'env', variant_dir = env['VARIANT_DIR'] + '/' + os.path.dirname(str(subdir)))
|
/nanopb-2.7.6/ |
D | pb_encode.c | 867 const char *str = (const char*)field->pData; in pb_enc_string() local 887 if (str == NULL) in pb_enc_string() 893 const char *p = str; in pb_enc_string() 909 if (!pb_validate_utf8(str)) in pb_enc_string() 913 return pb_encode_string(stream, (const pb_byte_t*)str, size); in pb_enc_string()
|
D | pb_common.c | 334 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-2.7.6/docs/ |
D | concepts.md | 281 char *str = get_string_from_somewhere(); 285 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
|