memory#
Fully qualified name: carb::memory
-
namespace memory#
Classes#
- ArenaAllocator
An allocator that initially allocates from a memory arena (typically on the stack) and falls back to another allocator when that is exhausted.
Functions#
- bool operator!=(const ArenaAllocator< T, Allocator1 > &lhs, const ArenaAllocator< U, Allocator2 > &rhs)
Inequality operator.
- bool operator==(const ArenaAllocator< T, Allocator1 > &lhs, const ArenaAllocator< U, Allocator2 > &rhs)
Equality operator.
- bool protectedMemmove(void *dest, const void *source, size_t len)
Copies memory as via memmove, but returns false if a read access violation occurs while reading.
- bool protectedStrncpy(char *dest, const char *source, size_t n)
Copies memory as via strncpy, but returns false if an access violation occurs while reading.
- bool testReadable(const void *mem)
Tests if a memory word (size_t) can be read from an address without crashing.