Skip to main content

read_artifact_bytes

Function read_artifact_bytes 

Source
pub fn read_artifact_bytes(artifact: &[u8]) -> Result<PackArtifact>
Expand description

Parses and verifies a complete pack artifact already loaded in memory.

ยงErrors

Returns an error for unsupported versions, non-canonical metadata, unsafe paths, truncated or trailing data, invalid hashes, or inconsistent member and target metadata.