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); }
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) { // 3 means Flash Player 9 writer.WriteInt16(3); writer.WriteInt16(checked ((short)Headers.Count)); foreach (AmfHeader i in Headers) { writer.Write(i); } writer.WriteInt16(checked ((short)Bodies.Count)); foreach (AmfBody i in Bodies) { writer.Write(i); } }