Esempio n. 1
0
 internal void WriteBody(ObjectEncoding objectEncoding, AMFWriter writer)
 {
     writer.Reset();
     writer.WriteUTF(Target ?? "null");
     writer.WriteUTF(Response ?? "null");
     writer.WriteInt32(-1);
     WriteBodyData(objectEncoding, writer);
 }
Esempio n. 2
0
 internal AMFWriter(AMFWriter writer, Stream stream) : base(stream)
 {
     this._useLegacyCollection       = true;
     this._amf0ObjectReferences      = writer._amf0ObjectReferences;
     this._objectReferences          = writer._objectReferences;
     this._stringReferences          = writer._stringReferences;
     this._classDefinitionReferences = writer._classDefinitionReferences;
     this._useLegacyCollection       = writer._useLegacyCollection;
 }
Esempio n. 3
0
 internal void WriteBody(ObjectEncoding objectEncoding, AMFWriter writer)
 {
     writer.Reset();
     if (this.Target == null)
     {
         writer.WriteUTF("null");
     }
     else
     {
         writer.WriteUTF(this.Target);
     }
     if (this.Response == null)
     {
         writer.WriteUTF("null");
     }
     else
     {
         writer.WriteUTF(this.Response);
     }
     writer.WriteInt32(-1);
     this.WriteBodyData(objectEncoding, writer);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the AMFSerializer class.
 /// </summary>
 /// <param name="writer"></param>
 /// <param name="stream"></param>
 internal AMFSerializer(AMFWriter writer, Stream stream)
     : base(writer, stream)
 {
 }
Esempio n. 5
0
 protected override void WriteBodyData(ObjectEncoding objectEncoding, AMFWriter writer)
 {
     writer.WriteData(objectEncoding, base.Content);
 }
Esempio n. 6
0
        /// <summary>
        /// This method supports the Fluorine infrastructure and is not intended to be used directly from your code.
        /// </summary>
        protected virtual void WriteBodyData(ObjectEncoding objectEncoding, AMFWriter writer)
        {
            object content = this.Content;

            writer.WriteData(objectEncoding, content);
        }