mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Start work on porting Go rsync implementation to C
This commit is contained in:
@@ -1,47 +1,3 @@
|
||||
from typing import Callable, Tuple, Union
|
||||
|
||||
IO_BUFFER_SIZE: int
|
||||
|
||||
|
||||
class JobCapsule:
|
||||
pass
|
||||
|
||||
|
||||
class SignatureCapsule:
|
||||
pass
|
||||
|
||||
|
||||
class RsyncError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def begin_create_signature(file_size: int = -1, strong_len: int = 0) -> Tuple[JobCapsule, int, int]:
|
||||
pass
|
||||
|
||||
|
||||
def begin_load_signature() -> Tuple[JobCapsule, SignatureCapsule]:
|
||||
pass
|
||||
|
||||
|
||||
def build_hash_table(sig: SignatureCapsule) -> None:
|
||||
pass
|
||||
|
||||
|
||||
def begin_create_delta(sig: SignatureCapsule) -> JobCapsule:
|
||||
pass
|
||||
|
||||
|
||||
def begin_patch(callback: Callable[[memoryview, int], int]) -> JobCapsule:
|
||||
pass
|
||||
|
||||
|
||||
def iter_job(job_capsule: JobCapsule, input_data: bytes, output_buf: bytearray) -> Tuple[bool, int, int]:
|
||||
pass
|
||||
|
||||
|
||||
def parse_ftc(src: Union[str, bytes, memoryview], callback: Callable[[memoryview, memoryview], None]) -> None:
|
||||
pass
|
||||
|
||||
|
||||
def decode_utf8_buffer(src: Union[str, bytes, memoryview]) -> str:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user