Skip to main content

image_begin

Function image_begin 

Source
pub fn image_begin(is_collection: bool) -> Vec<u8> 
Expand description

Builds the pickle image header (reference write_header + image_flags from create_new_object). Returns the buffer pre-seeded with the header; the caller appends the body and then calls image_finalize to back-patch the total size (4-byte BE at offset 3).