| HDK
    | 
#include <CE_BufferHost.h>
| Public Member Functions | |
| CE_BufferHost ()=default | |
| CE_BufferHost (const exint size) | |
| CE_BufferHost (const CE_BufferHost &other) | |
| CE_BufferHost (CE_BufferHost &&other) noexcept | |
| CE_BufferHost & | operator= (const CE_BufferHost &other) | 
| void | adoptFromAlignedMalloc (void *data, const exint size) | 
| void | adoptFromMalloc (void *data, const exint size) | 
| void | adoptFromNew (void *data, const exint size) | 
| ~CE_BufferHost () | |
| T * | data () const | 
| The buffer data.  More... | |
| exint | size () const | 
| The size of the buffer data in elements.  More... | |
| int64 | getMemoryUsage () const | 
| Static Public Attributes | |
| static constexpr int | ALIGNMENT = 64 | 
The traditional allocator will align to the size of the type, which in this case is char - however, in order to maximize the chances of vectorized instructions being generated, we'll align to the size of the cache line.
Note: We don't have a cross-platform method to determine the size of the cache line, so we'll just assume 64 bytes.
T should be a POD as this is not initialized.
Definition at line 26 of file CE_BufferHost.h.
| 
 | explicitdefault | 
| 
 | inlineexplicit | 
Definition at line 32 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 39 of file CE_BufferHost.h.
| 
 | inlinenoexcept | 
Definition at line 46 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 91 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 64 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 73 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 82 of file CE_BufferHost.h.
| 
 | inline | 
The buffer data.
Definition at line 97 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 102 of file CE_BufferHost.h.
| 
 | inline | 
Definition at line 56 of file CE_BufferHost.h.
| 
 | inline | 
The size of the buffer data in elements.
Definition at line 100 of file CE_BufferHost.h.
| 
 | static | 
Definition at line 109 of file CE_BufferHost.h.