Lines Matching refs:memory
803 * @brief Add an event to check if the parameter does match an area of memory.
811 * @param[in] memory The memory to compare.
813 * @param[in] size The size of the memory to compare.
817 void expect_memory(#function, #parameter, void *memory, size_t size);
819 #define expect_memory(function, parameter, memory, size) \
820 expect_memory_count(function, parameter, memory, size, 1)
826 * of memory.
834 * @param[in] memory The memory to compare.
836 * @param[in] size The size of the memory to compare.
844 void expect_memory_count(#function, #parameter, void *memory, size_t size, size_t count);
846 #define expect_memory_count(function, parameter, memory, size, count) \
848 (const void*)(memory), size, count)
854 * memory.
862 * @param[in] memory The memory to compare.
864 * @param[in] size The size of the memory to compare.
868 void expect_not_memory(#function, #parameter, void *memory, size_t size);
870 #define expect_not_memory(function, parameter, memory, size) \
871 expect_not_memory_count(function, parameter, memory, size, 1)
877 * area of memory.
885 * @param[in] memory The memory to compare.
887 * @param[in] size The size of the memory to compare.
895 void expect_not_memory_count(#function, #parameter, void *memory, size_t size, size_t count);
897 #define expect_not_memory_count(function, parameter, memory, size, count) \
899 (const void*)(memory), size, count)
1210 * @brief Assert that the two given areas of memory are equal, otherwise fail.
1213 * test by calling fail() if the memory is not equal.
1215 * @param[in] a The first memory area to compare
1218 * @param[in] b The second memory area to compare
1221 * @param[in] size The first n bytes of the memory areas to compare.
1232 * @brief Assert that the two given areas of memory are not equal.
1235 * test by calling fail() if the memory is equal.
1237 * @param[in] a The first memory area to compare
1240 * @param[in] b The second memory area to compare
1243 * @param[in] size The first n bytes of the memory areas to compare.
1651 * To test for memory leaks, buffer overflows and underflows a module being
1657 * completes if any allocated blocks (memory leaks) remain they are reported
1662 * means memory corruption from a single test case could potentially cause the
1674 * @return A pointer to the allocated memory or NULL on error.
1700 * The memory is set to zero.
1706 * @return A pointer to the allocated memory, NULL on error.
1720 * @param[in] ptr The memory block which should be changed.
1724 * @return The newly allocated memory block, NULL on error.
1735 * @param[in] ptr The pointer to the memory space to free.
1969 const char* const file, const int line, const void* const memory,
1973 const char* const file, const int line, const void* const memory,