dissect.evidence 3.9.dev3__py3-none-any.whl → 3.9.dev4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ from typing import BinaryIO, Callable, Iterator, Optional
13
13
 
14
14
  from dissect import cstruct
15
15
  from dissect.util import ts
16
- from dissect.util.stream import AlignedStream
16
+ from dissect.util.stream import AlignedStream, RangeStream
17
17
 
18
18
  from dissect.evidence.asdf.streams import CompressedStream, Crc32Stream, HashedStream
19
19
  from dissect.evidence.exceptions import (
@@ -311,8 +311,8 @@ class AsdfWriter(io.RawIOBase):
311
311
  block.write(self.fh)
312
312
  data_offset = self.fh.tell() # Block data location
313
313
 
314
- source.seek(offset)
315
- shutil.copyfileobj(source, outfh, size)
314
+ source_stream = RangeStream(source, offset, size)
315
+ shutil.copyfileobj(source_stream, outfh)
316
316
  # This writes any remaining data or footer for each block writer
317
317
  outfh.finalize()
318
318
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.evidence
3
- Version: 3.9.dev3
3
+ Version: 3.9.dev4
4
4
  Summary: A Dissect module implementing a parsers for various forensic evidence file containers, currently: AD1, ASDF and EWF
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Affero General Public License v3
@@ -3,7 +3,7 @@ dissect/evidence/ad1.py,sha256=5iO9d051D5e3w57psOUevbx8aotNIehoGQFOugZEIu0,6560
3
3
  dissect/evidence/ewf.py,sha256=aAM1nT-9rM85X2xu7iFDgQr0R92_hlZ3PRVut2-zCi0,14757
4
4
  dissect/evidence/exceptions.py,sha256=xFvnTpdkL7GhwV57dkI0t-63FxuBv_rjjP7VJ_zrL6Y,538
5
5
  dissect/evidence/asdf/__init__.py,sha256=yZxcpk-dYWkSqJ923fgh5x2l6GwXq2rJfmIrh5rZT68,177
6
- dissect/evidence/asdf/asdf.py,sha256=vVo1fiHQJQGXURsfZMA6OspwiCXEPcYXFFnAU1YJCJI,23802
6
+ dissect/evidence/asdf/asdf.py,sha256=86d2eENSEInTfCoq963qtybmK0HrW7ie8j1CQczJRrs,23846
7
7
  dissect/evidence/asdf/streams.py,sha256=5VBq4az6c10r5qQaHgR8g0a7j5nAcgQuat3yyp-Eua8,2601
8
8
  dissect/evidence/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  dissect/evidence/tools/asdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -11,10 +11,10 @@ dissect/evidence/tools/asdf/dd.py,sha256=ldyjyUIQhRaIxLhCbnvNK8d2sCvOw2PCVal3kCe
11
11
  dissect/evidence/tools/asdf/meta.py,sha256=Dqfs34wWU2lV2JPTdrwhPfZ3Dm-fETlA20yZDhQGmo4,2417
12
12
  dissect/evidence/tools/asdf/repair.py,sha256=5XQRQ33-SOcFes55vyY-j9tHrmrbSB8Q-ijspQnMD3U,2893
13
13
  dissect/evidence/tools/asdf/verify.py,sha256=DLYMXzsUtkimkhqUN_NHxnpamy8HHnL3rcp_aoL5-FI,3871
14
- dissect.evidence-3.9.dev3.dist-info/COPYRIGHT,sha256=yExUrJwFMdmpUCxPrUiBR1pPQ_pGrr6hf3p231U6VnQ,303
15
- dissect.evidence-3.9.dev3.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
16
- dissect.evidence-3.9.dev3.dist-info/METADATA,sha256=UsV4DcaQOrDBhCiE9kw600Bg1a1HOJP_Vc_eY3jxiwE,3162
17
- dissect.evidence-3.9.dev3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
- dissect.evidence-3.9.dev3.dist-info/entry_points.txt,sha256=rz4YeIbMkl-wjryDbFnh25eK5qK4asKQvZoMJ8hM_eo,222
19
- dissect.evidence-3.9.dev3.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
20
- dissect.evidence-3.9.dev3.dist-info/RECORD,,
14
+ dissect.evidence-3.9.dev4.dist-info/COPYRIGHT,sha256=yExUrJwFMdmpUCxPrUiBR1pPQ_pGrr6hf3p231U6VnQ,303
15
+ dissect.evidence-3.9.dev4.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
16
+ dissect.evidence-3.9.dev4.dist-info/METADATA,sha256=NprM93Un0tL8KCj9cclMgfjM0nM3HOH1wnpW56vPwPA,3162
17
+ dissect.evidence-3.9.dev4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
+ dissect.evidence-3.9.dev4.dist-info/entry_points.txt,sha256=rz4YeIbMkl-wjryDbFnh25eK5qK4asKQvZoMJ8hM_eo,222
19
+ dissect.evidence-3.9.dev4.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
20
+ dissect.evidence-3.9.dev4.dist-info/RECORD,,