Searched refs:val (Results 1 – 5 of 5) sorted by relevance
/zcbor-3.6.0/tests/decode/test5_corner_cases/ |
D | floats.py | 21 def print_32_64(str_val, val = None): argument 22 val = val or float(str_val) 23 print_var(str_val, val, struct.pack("!e", numpy.float16(val))) 24 …print_var(str_val, val, struct.pack("!f", struct.unpack("!e", struct.pack("!e", numpy.float16(val)… 25 print (numpy.float32(struct.unpack("!e", struct.pack("!e", numpy.float16(val)))[0])) 26 print_var(str_val, val, struct.pack("!f", val)) 27 print_var(str_val, val, struct.pack("!d", val)) 28 print_var(str_val, val, struct.pack("!d", struct.unpack("!f", struct.pack("!f", val))[0]))
|
/zcbor-3.6.0/zcbor/ |
D | zcbor.py | 198 def val_to_str(val): argument 199 if isinstance(val, bool): 200 return str(val).lower() 201 elif isinstance(val, Hashable) and val in val_conversions: 202 return val_conversions[val] 203 return str(val) 272 {my_type: None for my_type, val in type_strings.items() if not val.startswith("&(")} 274 {my_cg: None for my_cg, val in type_strings.items() if val.startswith("&(")} 1471 val = next(it) 1476 + "\n elem: ".join(str(elem) for elem in ([val] + list(it)))) [all …]
|
/zcbor-3.6.0/src/ |
D | zcbor_encode.c | 19 static uint8_t log2ceil(size_t val) in log2ceil() argument 21 switch(val) { in log2ceil()
|
/zcbor-3.6.0/ |
D | ARCHITECTURE.md | 28 …g the base CDDL type, the options are (corresponding CBOR types are in the form of #majortype.val): 130 - `{<key>: <value>}` => `{keyval<i>: {"key": <key>, "val": <value>}}` (i is an integer unique withi… 133 - `<tag, value>` => `{"tag": <tag>, "val": <value>}` where `<tag>` is the actual tag (a number), an…
|
D | README.md | 154 … pairs are represented as `{"zcbor_keyval<unique int>": {"key": <key, not text>, "val": <value>}}`.
|