Skip to main content

payload_section

Function payload_section 

Source
pub fn payload_section(data: &[u8]) -> &[u8] 
Expand description

The payload section of a full blob image.

Infallible and lenient: an image too short to hold a header, or one whose header points past its end, yields an empty section. Overflow blobs carry no metadata and reach here without a magic or validity check, so this is the one container read that needs no kind.