Expand description
Core resumable download primitives shared by the Takanawa front ends.
Structs§
- Chunk
- Byte range assigned to one download chunk.
- Chunk
Bitmap - Compact completion bitmap for a fixed number of chunks.
- Chunk
Plan - Precomputed chunk layout for a remote resource.
- Part
File - Resumable on-disk part file with metadata slots and an exclusive lock.
- Part
Metadata - Persisted state for a resumable part file.
- Remote
Info - Remote resource properties captured before a download starts or resumes.
Enums§
- Hash
Config - Expected hash value for optional final-file verification.
- Hash
Kind - Hash algorithm identifier used in metadata and FFI configuration.
- Takanawa
Error - Errors returned by Takanawa core, HTTP, and FFI layers.
Constants§
- DEFAULT_
CHUNK_ SIZE - Default chunk size used when a caller passes
0as the configured chunk size. - METADATA_
VERSION - Current on-disk part metadata version.
Functions§
- hash_
url - Hashes a URL for stable storage in part-file metadata.
- part_
lock_ path_ for - Returns the companion
.part.lockpath for a target file. - part_
path_ for - Returns the companion
.partpath for a target file. - slot_
size_ for - Returns the aligned metadata slot size for a content length and chunk size.
Type Aliases§
- Result
- Result type used by Takanawa core APIs.