diff --git a/src/format/context/output.rs b/src/format/context/output.rs index 2cb576f..080c057 100644 --- a/src/format/context/output.rs +++ b/src/format/context/output.rs @@ -71,6 +71,12 @@ impl Output { StreamMut::wrap(ptr) } } + + pub fn set_metadata(&mut self, dictionary: Dictionary) { + unsafe { + (*self.as_mut_ptr()).metadata = dictionary.take(); + } + } } impl Deref for Output {