public void WriteData(AmfWriter writer, object obj) { writer.WriteMarker(Amf3TypeMarkers.ByteArray); // We're just writing a plain byte array, so we don't need a serialization context writer.WriteAmf3ByteArray(new ByteArray((byte[])obj, null)); }
public void WriteData(AmfWriter writer, object obj) { writer.WriteMarker(Amf3TypeMarkers.ByteArray); writer.WriteAmf3ByteArray(obj as ByteArray); }
public void WriteData(AmfWriter writer, object obj) { writer.WriteMarker(Amf3TypeMarkers.ByteArray); writer.WriteAmf3ByteArray(new ByteArray((byte[])obj, (SerializationContext)null)); }