예제 #1
0
        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);
        }
예제 #2
0
        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);
        }