@@ -114,70 +114,10 @@ /*! * @brief The OFNumber as an `unsigned long long`. */ @property (readonly, nonatomic) unsigned long long unsignedLongLongValue; -/*! - * @brief The OFNumber as an `int8_t`. - */ -@property (readonly, nonatomic) int8_t int8Value; - -/*! - * @brief The OFNumber as an `int16_t`. - */ -@property (readonly, nonatomic) int16_t int16Value; - -/*! - * @brief The OFNumber as an `int32_t`. - */ -@property (readonly, nonatomic) int32_t int32Value; - -/*! - * @brief The OFNumber as an `int64_t`. - */ -@property (readonly, nonatomic) int64_t int64Value; - -/*! - * @brief The OFNumber as a `uint8_t`. - */ -@property (readonly, nonatomic) uint8_t uInt8Value; - -/*! - * @brief The OFNumber as a `uint16_t`. - */ -@property (readonly, nonatomic) uint16_t uInt16Value; - -/*! - * @brief The OFNumber as a `uint32_t`. - */ -@property (readonly, nonatomic) uint32_t uInt32Value; - -/*! - * @brief The OFNumber as a `uint64_t`. - */ -@property (readonly, nonatomic) uint64_t uInt64Value; - -/*! - * @brief The OFNumber as a `size_t`. - */ -@property (readonly, nonatomic) size_t sizeValue; - -/*! - * @brief The OFNumber as a `ptrdiff_t`. - */ -@property (readonly, nonatomic) ptrdiff_t ptrDiffValue; - -/*! - * @brief The OFNumber as an `intptr_t`. - */ -@property (readonly, nonatomic) intptr_t intPtrValue; - -/*! - * @brief The OFNumber as a `uintptr_t`. - */ -@property (readonly, nonatomic) uintptr_t uIntPtrValue; - /*! * @brief The OFNumber as a `float`. */ @property (readonly, nonatomic) float floatValue; @@ -288,106 +228,10 @@ * @param value The `unsigned long long` value which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithUnsignedLongLong: (unsigned long long)value; -/*! - * @brief Creates a new OFNumber with the specified `int8_t`. - * - * @param value The `int8_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithInt8: (int8_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `int16_t`. - * - * @param value The `int16_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithInt16: (int16_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `int32_t`. - * - * @param value The `int32_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithInt32: (int32_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `int64_t`. - * - * @param value The `int64_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithInt64: (int64_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `uint8_t`. - * - * @param value The `uint8_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithUInt8: (uint8_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `uint16_t`. - * - * @param value The `uint16_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithUInt16: (uint16_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `uint32_t`. - * - * @param value The `uint32_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithUInt32: (uint32_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `uint64_t`. - * - * @param value The `uint64_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithUInt64: (uint64_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `size_t`. - * - * @param value The `size_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithSize: (size_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `ptrdiff_t`. - * - * @param value The `ptrdiff_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithPtrDiff: (ptrdiff_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `intptr_t`. - * - * @param value The `intptr_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithIntPtr: (intptr_t)value; - -/*! - * @brief Creates a new OFNumber with the specified `uintptr_t`. - * - * @param value The `uintptr_t` value which the OFNumber should contain - * @return A new autoreleased OFNumber - */ -+ (instancetype)numberWithUIntPtr: (uintptr_t)value; - /*! * @brief Creates a new OFNumber with the specified `float`. * * @param value The `float` value which the OFNumber should contain * @return A new autoreleased OFNumber @@ -507,116 +351,10 @@ * @param value The `unsigned long long` value which the OFNumber should contain * @return An initialized OFNumber */ - (instancetype)initWithUnsignedLongLong: (unsigned long long)value; -/*! - * @brief Initializes an already allocated OFNumber with the specified `int8_t`. - * - * @param value The `int8_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithInt8: (int8_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `int16_t`. - * - * @param value The `int16_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithInt16: (int16_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `int32_t`. - * - * @param value The `int32_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithInt32: (int32_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `int64_t`. - * - * @param value The `int64_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithInt64: (int64_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `uint8_t`. - * - * @param value The `uint8_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithUInt8: (uint8_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `uint16_t`. - * - * @param value The `uint16_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithUInt16: (uint16_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `uint32_t`. - * - * @param value The `uint32_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithUInt32: (uint32_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `uint64_t`. - * - * @param value The `uint64_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithUInt64: (uint64_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified `size_t`. - * - * @param value The `size_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithSize: (size_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `ptrdiff_t`. - * - * @param value The `ptrdiff_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithPtrDiff: (ptrdiff_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `intptr_t`. - * - * @param value The `intptr_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithIntPtr: (intptr_t)value; - -/*! - * @brief Initializes an already allocated OFNumber with the specified - * `uintptr_t`. - * - * @param value The `uintptr_t` value which the OFNumber should contain - * @return An initialized OFNumber - */ -- (instancetype)initWithUIntPtr: (uintptr_t)value; - /*! * @brief Initializes an already allocated OFNumber with the specified `float`. * * @param value The `float` value which the OFNumber should contain * @return An initialized OFNumber