Skip to main content

decode_offer_page

Function decode_offer_page 

Source
pub fn decode_offer_page(bytes: &[u8]) -> Result<OfferPage, PeeringError>
Expand description

Decode one wire offer page, refusing anything Offer::encode_pages would not produce: a size that is not a bucket, a bucket above the cap, a count above the bucket, or non-zero padding.