swf: Make avm2 Writer::write_op public

This commit is contained in:
friedkeenan 2023-12-15 12:28:48 -06:00 committed by TÖRÖK Attila
parent c7966cea77
commit 834e745652
1 changed files with 1 additions and 2 deletions

View File

@ -589,8 +589,7 @@ impl<W: Write> Writer<W> {
Ok(())
}
#[allow(dead_code)]
fn write_op(&mut self, op: &Op) -> Result<()> {
pub fn write_op(&mut self, op: &Op) -> Result<()> {
match *op {
Op::Add => self.write_opcode(OpCode::Add)?,
Op::AddI => self.write_opcode(OpCode::AddI)?,