MCPcopy
hub / github.com/faust-streaming/faust / loads

Function loads

faust/serializers/codecs.py:363–365  ·  view source on GitHub ↗

Decode object from bytes.

(codec: Optional[CodecArg], s: bytes)

Source from the content-addressed store, hash-verified

361
362
363def loads(codec: Optional[CodecArg], s: bytes) -> Any:
364 """Decode object from bytes."""
365 return get_codec(codec).loads(s) if codec else s

Callers 7

test_json_subsetFunction · 0.90
test_binaryFunction · 0.90
loadsMethod · 0.90
loads_keyMethod · 0.70
loads_valueMethod · 0.70
_loadsMethod · 0.70

Calls 2

get_codecFunction · 0.85
loadsMethod · 0.45

Tested by 3

test_json_subsetFunction · 0.72
test_binaryFunction · 0.72