Exemplo n.º 1
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;
        }
Exemplo n.º 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);
        }