|
@@ 13674-13688 (lines=15) @@
|
| 13671 |
|
self.DiagnosticInfos = [] |
| 13672 |
|
self._freeze = True |
| 13673 |
|
|
| 13674 |
|
def to_binary(self): |
| 13675 |
|
packet = [] |
| 13676 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
| 13677 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.AvailableSequenceNumbers))) |
| 13678 |
|
for fieldname in self.AvailableSequenceNumbers: |
| 13679 |
|
packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
| 13680 |
|
packet.append(uabin.Primitives.Boolean.pack(self.MoreNotifications)) |
| 13681 |
|
packet.append(self.NotificationMessage.to_binary()) |
| 13682 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
| 13683 |
|
for fieldname in self.Results: |
| 13684 |
|
packet.append(fieldname.to_binary()) |
| 13685 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 13686 |
|
for fieldname in self.DiagnosticInfos: |
| 13687 |
|
packet.append(fieldname.to_binary()) |
| 13688 |
|
return b''.join(packet) |
| 13689 |
|
|
| 13690 |
|
@staticmethod |
| 13691 |
|
def from_binary(data): |
|
@@ 8439-8452 (lines=14) @@
|
| 8436 |
|
self.FilterResult = ContentFilterResult() |
| 8437 |
|
self._freeze = True |
| 8438 |
|
|
| 8439 |
|
def to_binary(self): |
| 8440 |
|
packet = [] |
| 8441 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.QueryDataSets))) |
| 8442 |
|
for fieldname in self.QueryDataSets: |
| 8443 |
|
packet.append(fieldname.to_binary()) |
| 8444 |
|
packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint)) |
| 8445 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ParsingResults))) |
| 8446 |
|
for fieldname in self.ParsingResults: |
| 8447 |
|
packet.append(fieldname.to_binary()) |
| 8448 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 8449 |
|
for fieldname in self.DiagnosticInfos: |
| 8450 |
|
packet.append(fieldname.to_binary()) |
| 8451 |
|
packet.append(self.FilterResult.to_binary()) |
| 8452 |
|
return b''.join(packet) |
| 8453 |
|
|
| 8454 |
|
@staticmethod |
| 8455 |
|
def from_binary(data): |