MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / populate_value

Function populate_value

runtime/example/python/combined_example.py:22–30  ·  view source on GitHub ↗
(out, val)

Source from the content-addressed store, hash-verified

20
21
22def populate_value(out, val):
23 sub_vals = val.get_sub_values()
24 if sub_vals is None:
25 out.bytes.data = bytes(val.get_bytes())
26 return
27 for sub_val in sub_vals:
28 cur = Value()
29 populate_value(cur, sub_val)
30 out.vector.value.append(cur)
31
32
33def typed_val_to_proto(typed_val):

Callers 1

typed_val_to_protoFunction · 0.85

Calls 3

ValueClass · 0.85
get_sub_valuesMethod · 0.80
get_bytesMethod · 0.80

Tested by

no test coverage detected