Skip to main content

fig_embed_retype

Function fig_embed_retype 

Source
pub unsafe extern "C" fn fig_embed_retype(
    input: *const u8,
    input_len: usize,
    from_embed_type: c_int,
    to_embed_type: c_int,
    content: *const u8,
    content_len: usize,
    out_ptr: *mut *mut u8,
    out_len: *mut usize,
) -> FigStatus
Expand description

Re-house an embedded region under a different archetype’s fences. On OK the result is an OWNED buffer — release it with fig_free, passing back the exact out_len. Added in core 2.7.0.