ObjFW  Diff

Differences From Artifact [4f26146aa4]:

To Artifact [268d38bfae]:


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
19
20
21
22
23
24
25




26
27
28
29
30
31
32







-
-
-
-








/**
 * @class OFValue OFValue.h ObjFW/OFValue.h
 *
 * @brief A class for storing arbitrary values in an object.
 */
@interface OFValue: OFObject <OFCopying>
{
	OF_RESERVE_IVARS(OFValue, 4)
}

/**
 * @brief The ObjC type encoding of the value.
 */
@property (readonly, nonatomic) const char *objCType;

/**
 * @brief The value as a pointer to void.
145
146
147
148
149
150
151
152



153
154
155
156
157
158
159
141
142
143
144
145
146
147

148
149
150
151
152
153
154
155
156
157







-
+
+
+







 *	  the specified type.
 *
 * @param bytes The bytes containing the value
 * @param objCType The ObjC type encoding for the value
 * @return An initialized OFValue
 */
- (instancetype)initWithBytes: (const void *)bytes
		     objCType: (const char *)objCType;
		     objCType: (const char *)objCType OF_DESIGNATED_INITIALIZER;

- (instancetype)init OF_UNAVAILABLE;

/**
 * @brief Gets the value.
 *
 * @param value The buffer to copy the value into
 * @param size The size of the value
 * @throw OFOutOfRangeException The specified size does not match the value