SPH
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MemoryBlock Struct Reference

#include <Allocators.h>

Public Member Functions

 MemoryBlock ()=default
 
 MemoryBlock (void *ptr, const std::size_t size)
 

Static Public Member Functions

static INLINE MemoryBlock EMPTY ()
 

Public Attributes

void * ptr
 
std::size_t size
 

Detailed Description

Definition at line 14 of file Allocators.h.

Constructor & Destructor Documentation

◆ MemoryBlock() [1/2]

MemoryBlock::MemoryBlock ( )
default

◆ MemoryBlock() [2/2]

MemoryBlock::MemoryBlock ( void *  ptr,
const std::size_t  size 
)
inline

Definition at line 19 of file Allocators.h.

Member Function Documentation

◆ EMPTY()

static INLINE MemoryBlock MemoryBlock::EMPTY ( )
inlinestatic

Definition at line 23 of file Allocators.h.

Member Data Documentation

◆ ptr

void* MemoryBlock::ptr

Definition at line 15 of file Allocators.h.

◆ size

std::size_t MemoryBlock::size

Definition at line 16 of file Allocators.h.


The documentation for this struct was generated from the following file: