Files
UnrealEngineUWP/Engine/Source/Runtime/Messaging/Public/IMessageAttachment.h
ryan durand 0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00

41 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
class FArchive;
/**
* Interface for message attachments.
*
* Message attachments are optional bulk data objects that can be attached to a message, such as
* files or memory buffers. Transferring attachments within the same process is very efficient and
* amounts to copying a pointer to the data. On the other hand, sending message attachments to
* applications running in other processes or on other computers may - depending on their size -
* take a considerable amount of time, because they need to be serialized and transferred. For this
* reason, attachments are transferred separately from messages in such cases.
*
* NOTE: Message attachments are not fully implemented yet. In particular, transferring attachments
* over a network does not work yet. This API may change in the near future, so please use with care.
*
* @see IMessageContext
*/
class IMessageAttachment
{
public:
/**
* Creates an archive reader to the data.
*
* The caller is responsible for deleting the returned object.
*
* @return An archive reader.
*/
virtual FArchive* CreateReader() = 0;
public:
/** Virtual destructor. */
virtual ~IMessageAttachment() { }
};