|
@@ -1,4 +1,4 @@
|
|
-from typing import List, Any, Iterator, BinaryIO
|
|
|
|
|
|
+from typing import List, Iterator, BinaryIO
|
|
|
|
|
|
from .reader import fmap_entry
|
|
from .reader import fmap_entry
|
|
|
|
|
|
@@ -6,7 +6,6 @@ API_VERSION: str
|
|
|
|
|
|
def buzhash(data: bytes, seed: int) -> int: ...
|
|
def buzhash(data: bytes, seed: int) -> int: ...
|
|
def buzhash_update(sum: int, remove: int, add: int, len: int, seed: int) -> int: ...
|
|
def buzhash_update(sum: int, remove: int, add: int, len: int, seed: int) -> int: ...
|
|
-def get_chunker(algo: str, *params, **kw) -> Any: ...
|
|
|
|
|
|
|
|
class ChunkerFailing:
|
|
class ChunkerFailing:
|
|
def __init__(self, block_size: int, map: str) -> None: ...
|
|
def __init__(self, block_size: int, map: str) -> None: ...
|
|
@@ -18,6 +17,12 @@ class ChunkerFixed:
|
|
|
|
|
|
class Chunker:
|
|
class Chunker:
|
|
def __init__(
|
|
def __init__(
|
|
- self, seed: int, chunk_min_exp: int, chunk_max_exp: int, hash_mask_bits: int, hash_window_size: int
|
|
|
|
|
|
+ self,
|
|
|
|
+ seed: int,
|
|
|
|
+ chunk_min_exp: int,
|
|
|
|
+ chunk_max_exp: int,
|
|
|
|
+ hash_mask_bits: int,
|
|
|
|
+ hash_window_size: int,
|
|
|
|
+ sparse: bool = False,
|
|
) -> None: ...
|
|
) -> None: ...
|
|
def chunkify(self, fd: BinaryIO = None, fh: int = -1, fmap: List[fmap_entry] = None) -> Iterator: ...
|
|
def chunkify(self, fd: BinaryIO = None, fh: int = -1, fmap: List[fmap_entry] = None) -> Iterator: ...
|