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; }
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); }