internal void WriteBody(ObjectEncoding objectEncoding, AMFWriter writer) { writer.Reset(); writer.WriteUTF(Target ?? "null"); writer.WriteUTF(Response ?? "null"); writer.WriteInt32(-1); WriteBodyData(objectEncoding, writer); }
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; }
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); }
/// <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) { }
protected override void WriteBodyData(ObjectEncoding objectEncoding, AMFWriter writer) { writer.WriteData(objectEncoding, base.Content); }
/// <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); }