pub fn patch_bsdf2( old: &[u8], patch_data: &[u8], new: &mut Vec<u8>, ) -> Result<()>
Apply a BSDF2 patch with full validation and optimizations