Exemplo n.º 1
0
 object IActionVisitor <ISwfStreamWriter, object> .Visit(ActionConstantPool action, ISwfStreamWriter writer)
 {
     writer.WriteUInt16((ushort)action.ConstantPool.Count);
     foreach (var str in action.ConstantPool)
     {
         writer.WriteString(str);
     }
     return(null);
 }
Exemplo n.º 2
0
        ActionBase IActionVisitor <ushort, ActionBase> .Visit(ActionConstantPool action, ushort length)
        {
            ushort count = _reader.ReadUInt16();

            for (var i = 0; i < count; i++)
            {
                action.ConstantPool.Add(_reader.ReadString());
            }
            return(action);
        }