Skip to main content

write_at

Function write_at 

Source
pub fn write_at(
    parsed: &Parsed,
    tree: &Tree,
    ctx: &WriteCtx<'_>,
    out: &mut DecodeBuf,
    alignment_origin: usize,
) -> Result<(), WriteError>
Expand description

Append an object while aligning relative to a caller’s stream origin. UnityPy’s supplied writer aligns its complete stream, including any prefix (streams/EndianBinaryWriter.py:88-97). An origin past the current output refuses before writing. [write] retains object-relative alignment.