4#ifndef WPI_MEMORY_DEBUGGING_HPP_INCLUDED
5#define WPI_MEMORY_DEBUGGING_HPP_INCLUDED
16 struct allocator_info;
97 const void* write_ptr);
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or memory
Definition ThirdPartyNotices.txt:58
invalid_pointer_handler get_invalid_pointer_handler()
Returns the invalid_pointer_handler.
void(*)(const void *memory, std::size_t size, const void *write_ptr) buffer_overflow_handler
The type of the handler called when a buffer under/overflow is detected.
Definition debugging.hpp:96
leak_handler set_leak_handler(leak_handler h)
Exchanges the leak_handler.
void(*)(const allocator_info &info, std::ptrdiff_t amount) leak_handler
The type of the handler called when a memory leak is detected.
Definition debugging.hpp:51
buffer_overflow_handler set_buffer_overflow_handler(buffer_overflow_handler h)
Exchanges the buffer_overflow_handler.
leak_handler get_leak_handler()
Returns the leak_handler.
void(*)(const allocator_info &info, const void *ptr) invalid_pointer_handler
The type of the handler called when an invalid pointer is passed to a deallocation function.
Definition debugging.hpp:73
invalid_pointer_handler set_invalid_pointer_handler(invalid_pointer_handler h)
Exchanges the invalid_pointer_handler.
buffer_overflow_handler get_buffer_overflow_handler()
Returns the buffer_overflow_handler.
debug_magic
The magic values that are used for debug filling.
Definition debugging.hpp:23
@ freed_memory
Marks freed memory - "dead memory".
@ alignment_memory
Marks buffer memory used to ensure proper alignment.
@ internal_memory
Marks internal memory used by the allocator - "allocated block".
@ fence_memory
Marks buffer memory used to protect against overflow - "fence memory".
@ new_memory
Marks allocated, but not yet used memory - "clean memory".
@ internal_freed_memory
Marks internal memory currently not used by the allocator - "freed block".
Memory namespace.
Definition heap_allocator.hpp:20
Foonathan namespace.
Definition ntcore_cpp.h:26
Contains information about an allocator.
Definition error.hpp:23