Searched refs:dumps (Results 1 – 2 of 2) sorted by relevance
/zcbor-3.6.0/tests/scripts/ |
D | test_zcbor.py | 192 def dumps(obj): function 193 return cbor2.dumps(obj, canonical=True) 213 sig_struct = dumps(["Signature1", signature_header, b'', manifest_suit_digest]) 277 struct3[4] = dumps(struct4) 278 struct2[3] = dumps(struct3) 279 struct.value[3] = dumps(struct2) 280 data = dumps(struct) 291 struct2[1] = dumps(struct3) 292 struct.value[2] = dumps(struct2) 293 data = dumps(struct) [all …]
|
/zcbor-3.6.0/zcbor/ |
D | zcbor.py | 18 from cbor2 import (loads, dumps, CBORTag, load, CBORDecodeValueError, CBORDecodeEOF, undefined, 21 from json import loads as json_load, dumps as json_dump 1651 bstr = dumps(self._from_yaml_obj(obj["zcbor_bstr"])) 1708 return dumps(obj) 1725 return dumps(obj)
|