Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
f20bf97c5d | 3 years ago |
5 changed files with 31 additions and 8 deletions
Binary file not shown.
@ -1,7 +1,18 @@
@@ -1,7 +1,18 @@
|
||||
from stormpci_bin_reader import BlockReader |
||||
|
||||
br = BlockReader("2022-04-23-00:00:37.bin") |
||||
br = BlockReader("2022-04-23-00:00:37.bin", seek=0) |
||||
blocks = br.read_all_blocks() |
||||
|
||||
for block in blocks: |
||||
# print(len(blocks)) |
||||
|
||||
for j, block in enumerate(blocks): |
||||
if j == 0: |
||||
# print(len(block.raw_data)) |
||||
with open("test.bin", "wb") as f: |
||||
f.write(block.raw_data) |
||||
print(block) |
||||
|
||||
# for tests run in bash: |
||||
# head -c 6344 2022-04-23-00\:00\:37.bin > test2.bin |
||||
# and |
||||
# diff test2.bin test.bin |
||||
|
||||
Binary file not shown.
Loading…
Reference in new issue