@@ 12245-12259 (lines=15) @@ | ||
12242 | self.AddDiagnosticInfos = [] |
|
12243 | self.RemoveResults = [] |
|
12244 | self.RemoveDiagnosticInfos = [] |
|
12245 | self._freeze = True |
|
12246 | ||
12247 | def to_binary(self): |
|
12248 | packet = [] |
|
12249 | packet.append(uabin.Primitives.Int32.pack(len(self.AddResults))) |
|
12250 | for fieldname in self.AddResults: |
|
12251 | packet.append(fieldname.to_binary()) |
|
12252 | packet.append(uabin.Primitives.Int32.pack(len(self.AddDiagnosticInfos))) |
|
12253 | for fieldname in self.AddDiagnosticInfos: |
|
12254 | packet.append(fieldname.to_binary()) |
|
12255 | packet.append(uabin.Primitives.Int32.pack(len(self.RemoveResults))) |
|
12256 | for fieldname in self.RemoveResults: |
|
12257 | packet.append(fieldname.to_binary()) |
|
12258 | packet.append(uabin.Primitives.Int32.pack(len(self.RemoveDiagnosticInfos))) |
|
12259 | for fieldname in self.RemoveDiagnosticInfos: |
|
12260 | packet.append(fieldname.to_binary()) |
|
12261 | return b''.join(packet) |
|
12262 | ||
@@ 10652-10664 (lines=13) @@ | ||
10649 | self.InputArgumentResults = [] |
|
10650 | self.InputArgumentDiagnosticInfos = [] |
|
10651 | self.OutputArguments = [] |
|
10652 | self._freeze = True |
|
10653 | ||
10654 | def to_binary(self): |
|
10655 | packet = [] |
|
10656 | packet.append(self.StatusCode.to_binary()) |
|
10657 | packet.append(uabin.Primitives.Int32.pack(len(self.InputArgumentResults))) |
|
10658 | for fieldname in self.InputArgumentResults: |
|
10659 | packet.append(fieldname.to_binary()) |
|
10660 | packet.append(uabin.Primitives.Int32.pack(len(self.InputArgumentDiagnosticInfos))) |
|
10661 | for fieldname in self.InputArgumentDiagnosticInfos: |
|
10662 | packet.append(fieldname.to_binary()) |
|
10663 | packet.append(uabin.Primitives.Int32.pack(len(self.OutputArguments))) |
|
10664 | for fieldname in self.OutputArguments: |
|
10665 | packet.append(fieldname.to_binary()) |
|
10666 | return b''.join(packet) |
|
10667 |