(in_stream, n)
| 13 | HEADER_SIZE = 16 # Message header bytes |
| 14 | |
| 15 | def readBytes(in_stream, n): |
| 16 | result = b"" # Initialize an empty bytes object |
| 17 | while n > 0: |
| 18 | chunk = in_stream.read(n) |
| 19 | if len(chunk) > 0: |
| 20 | result += chunk |
| 21 | n -= len(chunk) |
| 22 | else: |
| 23 | time.sleep(0.01) |
| 24 | return result |
| 25 | |
| 26 | class VioDeserializer: |
| 27 | def __init__(self, directory, onVioOutput, onMappingOutput): |
no outgoing calls
no test coverage detected