@@ -47,8 +47,8 @@ class Encoder:
4747
4848 class PackageType (Enum ):
4949 '''
50- \ b rief Package content data type
51- \ a ttention Must match with the enumeration in the server
50+ @ brief Package content data type
51+ @ attention Must match with the enumeration in the server
5252 '''
5353 INVALID = 0
5454 INT_8 = 1
@@ -133,8 +133,8 @@ class CdcEncoder (Encoder):
133133
134134 class Type (Enum ):
135135 '''
136- \ b rief Data types handled by the CDC encoding scheme.
137- \ a ttention Must match with the enumeration in the server
136+ @ brief Data types handled by the CDC encoding scheme.
137+ @ attention Must match with the enumeration in the server
138138 '''
139139 NONE = 0
140140 BOOLEAN = 1
@@ -160,23 +160,23 @@ class Type (Enum):
160160
161161 def encode (self , obj , context ):
162162 '''
163- \ b rief Encode data package
163+ @ brief Encode data package
164164
165165 Encodes an arbitrary Python object into binary payload package.
166- \ param obj Python object
167- \ param context Context for additional encoding information like used shared memory segments etc.
168- \ r eturn Binary data block
166+ @ param obj Python object
167+ @ param context Context for additional encoding information like used shared memory segments etc.
168+ @ return Binary data block
169169 '''
170170 buffer = bytearray ()
171171 self .encodeValue (buffer , obj , context )
172172 return buffer
173173
174174 def encodeValue (self , buffer , obj , context ):
175175 '''
176- \ b rief Encode object into CDC (compact data container) format
176+ @ brief Encode object into CDC (compact data container) format
177177
178- \ param buffer Array chunk buffer the generated data is appended to
179- \ param obj Arbitrary Python object to be encoded
178+ @ param buffer Array chunk buffer the generated data is appended to
179+ @ param obj Arbitrary Python object to be encoded
180180 '''
181181 if obj is None :
182182 self .encodeType (buffer , CdcEncoder .Type .NONE )
@@ -347,10 +347,10 @@ def encodeStr(self, buffer, obj):
347347
348348 def decode (self , data , context ):
349349 '''
350- \ b rief Decode data package
350+ @ brief Decode data package
351351
352- \ param data Binary data block
353- \ r eturn Represented Python object
352+ @ param data Binary data block
353+ @ return Represented Python object
354354 '''
355355 class InStream :
356356
@@ -368,13 +368,13 @@ def read(self, n):
368368
369369 def decodeValue (self , s , context ):
370370 '''
371- \ b rief Decode the next encoded Python object in the buffer
371+ @ brief Decode the next encoded Python object in the buffer
372372
373373 If the encoded object is a container, the container content is decoded
374374 recursively.
375375
376- \ param s Data stream
377- \ r eturn Python object
376+ @ param s Data stream
377+ @ return Python object
378378 '''
379379 obj_type = CdcEncoder .Type (s .read (1 )[0 ])
380380
@@ -550,7 +550,7 @@ def decodeStr(self, s):
550550#
551551class JsonEncoder (Encoder ):
552552 '''
553- \ b rief Payload data encoding/decoding in JSON format
553+ @ brief Payload data encoding/decoding in JSON format
554554 '''
555555
556556 #
@@ -585,12 +585,12 @@ class JsonEncoder (Encoder):
585585
586586 def encode (self , obj , context ):
587587 '''
588- \ b rief Encode data package
588+ @ brief Encode data package
589589
590590 Encodes an arbitrary Python object into binary payload package.
591591
592- \ param obj Python object
593- \ r eturn Binary data block
592+ @ param obj Python object
593+ @ return Binary data block
594594 '''
595595 return json .dumps (JsonEncoder .encode_traits (obj , context )).encode ()
596596
@@ -601,23 +601,23 @@ def decode(self, data, context):
601601 This function decodes a binary payload data package into the represented
602602 Python object.
603603
604- \ param data Binary data block
605- \ r eturn Python object
604+ @ param data Binary data block
605+ @ return Python object
606606 '''
607607 return JsonEncoder .decode_traits (json .loads (data .decode ()), context )
608608
609609 @staticmethod
610610 def encode_traits (obj , context ):
611611 '''
612- \ b rief Encode complex Python types into JSON compatible format
612+ @ brief Encode complex Python types into JSON compatible format
613613
614614 In JSON there is no way to transmit other than the standard objects (bool, int, ..., list, map).
615615 So types like Item or dynamically registeres types must be converted into a map like representation
616616 before being encoded.
617617
618- \ param obj Python object to be encoded
619- \ param context Encoding context for keeping addition information like the used shared memory segements
620- \ r eturn Python object with complex data types converted into a map like representation
618+ @ param obj Python object to be encoded
619+ @ param context Encoding context for keeping addition information like the used shared memory segements
620+ @ return Python object with complex data types converted into a map like representation
621621 '''
622622
623623 if hasattr (obj , '__json__' ):
@@ -697,8 +697,8 @@ def decode_traits(obj, context):
697697 into native Python objects. This function is then called to convert the dictionary objects
698698 which are representing dynamic types into these types.
699699
700- \ param obj Python object in decoded format
701- \ r eturn Python object with all intermediate types resolved
700+ @ param obj Python object in decoded format
701+ @ return Python object with all intermediate types resolved
702702 '''
703703
704704 result = None
0 commit comments