Lugdunum  0.1.0
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
lug::System::Memory::Policies::SimpleBoundsChecking Class Reference

#include <BoundsChecker.hpp>

Collaboration diagram for lug::System::Memory::Policies::SimpleBoundsChecking:
[legend]

Public Member Functions

void guardFront (void *ptr, size_t size) const
 
void guardBack (void *ptr, size_t size) const
 
void checkFront (void *ptr, size_t size) const
 
void checkBack (void *ptr, size_t size) const
 

Static Public Attributes

static constexpr size_t SizeFront = 4
 
static constexpr size_t SizeBack = 4
 

Static Private Attributes

static constexpr const char * MagicFront = "\xDE\xAD"
 
static constexpr const char * MagicBack = "\xBE\xEF"
 

Detailed Description

Definition at line 24 of file BoundsChecker.hpp.

Member Function Documentation

◆ guardFront()

void SimpleBoundsChecking::guardFront ( void *  ptr,
size_t  size 
) const
inline

Definition at line 7 of file BoundsChecker.inl.

◆ guardBack()

void SimpleBoundsChecking::guardBack ( void *  ptr,
size_t  size 
) const
inline

Definition at line 11 of file BoundsChecker.inl.

◆ checkFront()

void SimpleBoundsChecking::checkFront ( void *  ptr,
size_t  size 
) const
inline

Definition at line 15 of file BoundsChecker.inl.

◆ checkBack()

void SimpleBoundsChecking::checkBack ( void *  ptr,
size_t  size 
) const
inline

Definition at line 25 of file BoundsChecker.inl.

Member Data Documentation

◆ SizeFront

constexpr size_t lug::System::Memory::Policies::SimpleBoundsChecking::SizeFront = 4
static

Definition at line 26 of file BoundsChecker.hpp.

◆ SizeBack

constexpr size_t lug::System::Memory::Policies::SimpleBoundsChecking::SizeBack = 4
static

Definition at line 27 of file BoundsChecker.hpp.

◆ MagicFront

constexpr const char* lug::System::Memory::Policies::SimpleBoundsChecking::MagicFront = "\xDE\xAD"
staticprivate

Definition at line 36 of file BoundsChecker.hpp.

◆ MagicBack

constexpr const char* lug::System::Memory::Policies::SimpleBoundsChecking::MagicBack = "\xBE\xEF"
staticprivate

Definition at line 37 of file BoundsChecker.hpp.


The documentation for this class was generated from the following files: