private static IEnumerable <AmfHeader> ReadHeaders(AmfParser parser, int count)
 {
     while (--count >= 0)
     {
         yield return(AmfHeader.Read(parser));
     }
 }
Пример #2
0
        public static AmfHeader Read(AmfParser parser)
        {
            AmfHeader header = new AmfHeader();

            header.Name = parser.ReadString();
            header.Required = parser.ReadBoolean();

            int hlen = parser.ReadInt32();

            header.Value = parser.ReadNextObject();

            return header;
        }