void IAmfSerializable.Serialize(AmfWriter writer) { writer.TypelessWriteString(Target); writer.TypelessWriteString(Response); MemoryStream stream = new MemoryStream(); new AmfWriter(stream).Write(Content); byte[] data = stream.ToArray(); writer.WriteInt32(data.Length); writer.Stream.Write(data); }
void IAmfSerializable.Serialize(AmfWriter writer) { writer.TypelessWriteString(Name); writer.TypelessWrite(Required); MemoryStream stream = new MemoryStream(); new AmfWriter(stream).Write(Value); byte[] data = stream.ToArray(); writer.WriteInt32(data.Length); writer.Stream.Write(data); }