Jolt Physics
A multi core friendly Game Physics Engine
|
Simple byte buffer, aligned to a cache line. More...
#include <ByteBuffer.h>
Public Member Functions | |
size_t | Align (size_t inSize) |
Align the size to a multiple of inSize, returns the length after alignment. | |
template<class Type > | |
Type * | Allocate (size_t inSize=1) |
Allocate block of data of inSize elements and return the pointer. | |
template<class Type > | |
void | AppendVector (const Array< Type > &inData) |
Append inData to the buffer. | |
template<class Type > | |
const Type * | Get (size_t inPosition) const |
Get object at inPosition (an offset in bytes) | |
template<class Type > | |
Type * | Get (size_t inPosition) |
Get object at inPosition (an offset in bytes) | |
Simple byte buffer, aligned to a cache line.
Align the size to a multiple of inSize, returns the length after alignment.
|
inline |
Allocate block of data of inSize elements and return the pointer.
Append inData to the buffer.
Get object at inPosition (an offset in bytes)
Get object at inPosition (an offset in bytes)