Searched refs:dumps (Results 1 – 2 of 2) sorted by relevance
/zcbor-3.5.0-3.4.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.5.0-3.4.0/zcbor/ |
D | zcbor.py | 17 from cbor2 import (loads, dumps, CBORTag, load, CBORDecodeValueError, CBORDecodeEOF, undefined, 20 from json import loads as json_load, dumps as json_dump 1614 bstr = dumps(self._from_yaml_obj(obj["zcbor_bstr"])) 1671 return dumps(obj) 1688 return dumps(obj)
|