private static IEnumerable <AmfBody> ReadBodies(AmfParser parser, int count)
 {
     while (--count >= 0)
     {
         yield return(AmfBody.Read(parser));
     }
 }
Example #2
0
        public static AmfBody Read(AmfParser parser)
        {
            AmfBody body = new AmfBody();

            body.Target   = parser.ReadString();
            body.Response = parser.ReadString();

            int blen = parser.ReadInt32();

            body.Content = parser.ReadNextObject();

            return(body);
        }