MCPcopy Create free account
hub / github.com/apache/fory / from_pb_struct

Function from_pb_struct

benchmarks/python/benchmark.py:431–445  ·  view source on GitHub ↗
(pb_obj)

Source from the content-addressed store, hash-verified

429
430
431def from_pb_struct(pb_obj) -> NumericStruct:
432 return NumericStruct(
433 f1=pb_obj.f1,
434 f2=pb_obj.f2,
435 f3=pb_obj.f3,
436 f4=pb_obj.f4,
437 f5=pb_obj.f5,
438 f6=pb_obj.f6,
439 f7=pb_obj.f7,
440 f8=pb_obj.f8,
441 f9=pb_obj.f9,
442 f10=pb_obj.f10,
443 f11=pb_obj.f11,
444 f12=pb_obj.f12,
445 )
446
447
448def to_pb_sample(bench_pb2, obj: Sample):

Callers 1

Calls 1

NumericStructClass · 0.70

Tested by

no test coverage detected