Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, data):
self.flows = []
self.header = V5Header(data)
offset = self.header.length
for flow_count in range(0, self.header.count):
end = offset + V5DataFlow.length
flow = V5DataFlow(data[offset:end])
self.flows.append(flow)
offset += flow.length
def __init__(self, data):
self.flows = []
self.header = V5Header(data)
offset = self.header.length
for flow_count in range(0, self.header.count):
end = offset + V5DataFlow.length
flow = V5DataFlow(data[offset:end])
self.flows.append(flow)
offset += flow.length