Skip to main content

encode

Function encode 

Source
pub async fn encode(path: &Path, hash_hex: &str) -> Result<EncodedFileInfo>
Expand description

Encode a file by its path using bao encoding. Returns bao hash, bytes read, bytes written, and the offset from which the bytes were written.