MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / StructSimple

Class StructSimple

projects/Python/proto/test.py:756–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754
755@functools.total_ordering
756class StructSimple(object):
757 __slots__ = "id", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", "f32", "f33", "f34", "f35", "f36", "f37", "f38", "f39", "f40", "f41", "f42", "f43", "f44",
758
759 def __init__(self, id=0, f1=False, f2=True, f3=0, f4=255, f5='\0', f6='!', f7='\0', f8=chr(0x0444), f9=0, f10=127, f11=0, f12=255, f13=0, f14=32767, f15=0, f16=65535, f17=0, f18=2147483647, f19=0, f20=4294967295, f21=0, f22=9223372036854775807, f23=0, f24=18446744073709551615, f25=0.0, f26=float(123.456), f27=0.0, f28=float(-123.456e+123), f29=decimal.Decimal(0), f30=decimal.Decimal("123456.123456"), f31="", f32="Initial string!", f33=fbe.epoch(), f34=fbe.epoch(), f35=None, f36=uuid.UUID(int=0), f37=None, f38=uuid.UUID("123e4567-e89b-12d3-a456-426655440000"), f39=None, f40=None, f41=None, f42=None, f43=None, f44=None):
760 if f29 is None:
761 f29 = decimal.Decimal(0)
762 if f35 is None:
763 f35 = fbe.utc()
764 if f36 is None:
765 f36 = uuid.UUID(int=0)
766 if f37 is None:
767 f37 = uuid.uuid1()
768 if f39 is None:
769 f39 = proto.OrderSide()
770 if f40 is None:
771 f40 = proto.OrderType()
772 if f41 is None:
773 f41 = proto.Order()
774 if f42 is None:
775 f42 = proto.Balance()
776 if f43 is None:
777 f43 = proto.State()
778 if f44 is None:
779 f44 = proto.Account()
780 self.id = id
781 self.f1 = f1
782 self.f2 = f2
783 self.f3 = f3
784 self.f4 = f4
785 self.f5 = f5
786 self.f6 = f6
787 self.f7 = f7
788 self.f8 = f8
789 self.f9 = f9
790 self.f10 = f10
791 self.f11 = f11
792 self.f12 = f12
793 self.f13 = f13
794 self.f14 = f14
795 self.f15 = f15
796 self.f16 = f16
797 self.f17 = f17
798 self.f18 = f18
799 self.f19 = f19
800 self.f20 = f20
801 self.f21 = f21
802 self.f22 = f22
803 self.f23 = f23
804 self.f24 = f24
805 self.f25 = f25
806 self.f26 = f26
807 self.f27 = f27
808 self.f28 = f28
809 self.f29 = f29
810 self.f30 = f30
811 self.f31 = f31
812 self.f32 = f32
813 self.f33 = f33

Callers 9

__from_json__Method · 0.70
getMethod · 0.70
deserializeMethod · 0.70
getMethod · 0.70
deserializeMethod · 0.70
__init__Method · 0.70
__init__Method · 0.70
get_fieldsMethod · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by 9

__from_json__Method · 0.56
getMethod · 0.56
deserializeMethod · 0.56
getMethod · 0.56
deserializeMethod · 0.56
__init__Method · 0.56
__init__Method · 0.56
get_fieldsMethod · 0.56
__init__Method · 0.56