Lines Matching refs:ptr
40 void* ptr; member
54 void* ptr = malloc(size); in AllocPtr() local
55 ASSERT_TRUE(ptr != nullptr); in AllocPtr()
56 alloc->ptr = ptr; in AllocPtr()
57 alloc->size = malloc_usable_size(ptr); in AllocPtr()
64 free(test_data->allocs[i].ptr); in FreePtrs()
80 uintptr_t ptr = reinterpret_cast<uintptr_t>(test_data->allocs[i].ptr); in SavePointers() local
81 if (ptr >= base && ptr < end) { in SavePointers()
84 uintptr_t max_size = end - ptr; in SavePointers()
132 void* ptr = malloc(size); in AllocateSizes() local
133 ASSERT_TRUE(ptr != nullptr); in AllocateSizes()
134 memset(ptr, 0, size); in AllocateSizes()
135 free(ptr); in AllocateSizes()
244 void* ptr = malloc(1024); in TEST() local
245 if (ptr == nullptr) { in TEST()
248 memset(ptr, 0, 1024); in TEST()