/// <summary> /// Read <see cref="SwfOp.ByteCode.Actions.ActionStoreRegister">store register</see> action from swf. /// </summary> private ActionStoreRegister ReadActionStoreRegister(BinaryReader br) { int len = Convert.ToInt32(br.ReadUInt16()); ActionStoreRegister a = new ActionStoreRegister(br.ReadByte()); //a.ByteSize = len+3; return(a); }
ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionStoreRegister action, XElement xAction) { action.RegisterNumber = xAction.RequiredByteAttribute("reg"); return(action); }
XElement IActionVisitor <XElement, XElement> .Visit(ActionStoreRegister action, XElement arg) { return(new XElement(XActionNames.FromAction(action), new XAttribute("reg", action.RegisterNumber))); }