ObjFW  Diff

Differences From Artifact [3af5c96964]:

To Artifact [90f8ea281b]:


14
15
16
17
18
19
20
21

22
23
24
25
26
27
28
29
30
31
32

33
34
35

36
37

38
39
40
14
15
16
17
18
19
20

21
22
23
24
25
26
27
28
29
30
31

32

33

34
35

36
37
38
39







-
+










-
+
-

-
+

-
+



 * file.
 */

#import "OFObject.h"

OF_ASSUME_NONNULL_BEGIN

@class OFDataArray;
@class OFData;

/*!
 * @protocol OFMessagePackRepresentation
 *	     OFMessagePackRepresentation.h ObjFW/OFMessagePackRepresentation.h
 *
 * @brief A protocol implemented by classes that support encoding to a
 *	  MessagePack representation.
 */
@protocol OFMessagePackRepresentation
/*!
 * @brief Returns the MessagePack representation of the object as an
 * @brief Returns the MessagePack representation of the object as OFData.
 *	  OFDataArray.
 *
 * @return The MessagePack representation of the object as an OFDataArray.
 * @return The MessagePack representation of the object as OFData.
 */
- (OFDataArray *)messagePackRepresentation;
- (OFData *)messagePackRepresentation;
@end

OF_ASSUME_NONNULL_END