Searched refs:size_str (Results 1 – 7 of 7) sorted by relevance
409 def parse_readable_size_str(size_str): argument426 size_str = size_str.strip()427 if size_str.endswith("B"):428 size_str = size_str[:-1]430 if size_str.isdigit():431 return int(size_str)432 elif size_str.endswith("k"):433 return int(float(size_str[:-1]) * 1024)434 elif size_str.endswith("M"):435 return int(float(size_str[:-1]) * 1048576)[all …]
283 std::string size_str; in RunWycheproofTest() local284 ASSERT_TRUE(t->GetAttribute(&size_str, "size")); in RunWycheproofTest()286 std::vector<uint8_t> out(atoi(size_str.c_str())); in RunWycheproofTest()
86 auto size_str = line.substr(size_pos + 5, in _get_field_kind() local88 int size = std::stoi(size_str, nullptr); in _get_field_kind()
69 size_str = fd.read(10)70 if not size_str:74 size = int(size_str, 10)
276 def make_file(name, hash=None, size_str=None): argument279 result.size = int(size_str) if size_str else None
883 uint32_t size_str = fdt32_to_cpu(fdt->size_dt_strings); in dt_from_blob() local884 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize)) in dt_from_blob()886 inbuf_init(&strbuf, blob + off_str, blob + off_str + size_str); in dt_from_blob()