Skip to main content

parse

Function parse 

Source
pub fn parse(payloads: &[Vec<u8>]) -> Result<Advertisement>
Expand description

Parse an already-unframed advertisement.

Separated from the I/O so the shapes that matter — an empty repository, sha256 oids, shallow lines, a server too old to advertise object-format — are asserted from byte literals rather than from a live server.