|
@@ 13011-13025 (lines=15) @@
|
| 13008 |
|
self.DiagnosticInfos = [] |
| 13009 |
|
self._freeze = True |
| 13010 |
|
|
| 13011 |
|
def to_binary(self): |
| 13012 |
|
packet = [] |
| 13013 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
| 13014 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.AvailableSequenceNumbers))) |
| 13015 |
|
for fieldname in self.AvailableSequenceNumbers: |
| 13016 |
|
packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
| 13017 |
|
packet.append(uabin.Primitives.Boolean.pack(self.MoreNotifications)) |
| 13018 |
|
packet.append(self.NotificationMessage.to_binary()) |
| 13019 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
| 13020 |
|
for fieldname in self.Results: |
| 13021 |
|
packet.append(fieldname.to_binary()) |
| 13022 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 13023 |
|
for fieldname in self.DiagnosticInfos: |
| 13024 |
|
packet.append(fieldname.to_binary()) |
| 13025 |
|
return b''.join(packet) |
| 13026 |
|
|
| 13027 |
|
@staticmethod |
| 13028 |
|
def from_binary(data): |
|
@@ 8168-8181 (lines=14) @@
|
| 8165 |
|
self.FilterResult = ContentFilterResult() |
| 8166 |
|
self._freeze = True |
| 8167 |
|
|
| 8168 |
|
def to_binary(self): |
| 8169 |
|
packet = [] |
| 8170 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.QueryDataSets))) |
| 8171 |
|
for fieldname in self.QueryDataSets: |
| 8172 |
|
packet.append(fieldname.to_binary()) |
| 8173 |
|
packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint)) |
| 8174 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ParsingResults))) |
| 8175 |
|
for fieldname in self.ParsingResults: |
| 8176 |
|
packet.append(fieldname.to_binary()) |
| 8177 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 8178 |
|
for fieldname in self.DiagnosticInfos: |
| 8179 |
|
packet.append(fieldname.to_binary()) |
| 8180 |
|
packet.append(self.FilterResult.to_binary()) |
| 8181 |
|
return b''.join(packet) |
| 8182 |
|
|
| 8183 |
|
@staticmethod |
| 8184 |
|
def from_binary(data): |