22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
-
+
-
+
-
+
-
+
-
+
-
-
+
|
/*!
* @brief An ASN.1 Integer.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFASN1Integer: OFObject
{
intmax_t _integerValue;
long long _longLongValue;
}
/*!
* @brief The Integer value.
*/
@property (readonly, nonatomic) intmax_t integerValue;
@property (readonly, nonatomic) long long longLongValue;
/*!
* @brief Creates an ASN.1 Integer with the specified integer value.
*
* @param integerValue The integer value of the Integer
* @param value The `long long` value of the Integer
* @return A new, autoreleased OFASN1Integer
*/
+ (instancetype)integerWithIntegerValue: (intmax_t)integerValue;
+ (instancetype)integerWithLongLong: (long long)value;
- (instancetype)init OF_UNAVAILABLE;
/*!
* @brief Initializes an already allocated ASN.1 Integer with the specified
* integer value.
*
* @param integerValue The integer value of the Integer
* @param value The `long long` value of the Integer
* @return An initialized OFASN1Integer
*/
- (instancetype)initWithIntegerValue: (intmax_t)integerValue
OF_DESIGNATED_INITIALIZER;
- (instancetype)initWithLongLong: (long long)value OF_DESIGNATED_INITIALIZER;
/*!
* @brief Initializes an already allocated ASN.1 Integer with the specified
* arguments.
*
* @param tagClass The tag class of the value's type
* @param tagNumber The tag number of the value's type
|