@@ -748,11 +748,10 @@ * @brief Replaces a class method with a class method from another class. * * @param selector The selector of the class method to replace * @param class_ The class from which the new class method should be taken * @return The old implementation - * @throw OFInvalidArgumentException A specified argument is invalid */ + (nullable IMP)replaceClassMethod: (SEL)selector withMethodFromClass: (Class)class_; /** @@ -760,11 +759,10 @@ * class. * * @param selector The selector of the instance method to replace * @param class_ The class from which the new instance method should be taken * @return The old implementation - * @throw OFInvalidArgumentException A specified argument is invalid */ + (nullable IMP)replaceInstanceMethod: (SEL)selector withMethodFromClass: (Class)class_; /** @@ -1300,11 +1298,12 @@ * @param count The number of items to allocate * @param size The size of each item to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. * @throw OFOutOfMemoryException The allocation failed due to not enough memory - * @throw OFOutOfRangeException The requested size exceeds the address space + * @throw OFOutOfRangeException The requested `count * size` exceeds the + * address space */ extern void *_Nullable OFAllocMemory(size_t count, size_t size) OF_WARN_UNUSED_RESULT; /** @@ -1316,11 +1315,12 @@ * @param size The size of each item to allocate * @param count The number of items to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. * @throw OFOutOfMemoryException The allocation failed due to not enough memory - * @throw OFOutOfRangeException The requested size exceeds the address space + * @throw OFOutOfRangeException The requested `count * size` exceeds the + * address space */ extern void *_Nullable OFAllocZeroedMemory(size_t count, size_t size) OF_WARN_UNUSED_RESULT; /** @@ -1335,11 +1335,12 @@ * @param size The size of each item to resize to * @param count The number of items to resize to * @return A pointer to the resized memory chunk * @throw OFOutOfMemoryException The reallocation failed due to not enough * memory - * @throw OFOutOfRangeException The requested size exceeds the address space + * @throw OFOutOfRangeException The requested `count * size` exceeds the + * address space */ extern void *_Nullable OFResizeMemory(void *_Nullable pointer, size_t count, size_t size) OF_WARN_UNUSED_RESULT; /**