Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Buffer Class Reference
Inheritance diagram for Grindstone::Buffer:
Grindstone::ResizableBuffer

Public Member Functions

 Buffer (uint64_t newCapacity)
 Buffer (const Buffer &other)
 Buffer (Buffer &&other) noexcept
void ZeroInitialize ()
virtual Grindstone::Containers::BufferSpan GetSpan (uint64_t segmentOffset, uint64_t segmentSize)
virtual Grindstone::Containers::BufferSpan GetSpan ()
template<typename T>
Grindstone::Containers::Span< T > GetSpan (uint64_t offset, uint64_t count)
template<typename T>
T * Get (uint64_t offset)
template<typename T>
const T * Get (uint64_t offset) const
Byte * Get (uint64_t offset)
Byte * Get (uint64_t offset) const
Buffer & operator= (const Buffer &other)
Buffer & operator= (Buffer &&other) noexcept
Byte & operator[] (int index)
Byte operator[] (int index) const
 operator bool () const
void Clear ()
Byte * Get ()
const Byte * Get () const
uint64_t GetCapacity () const

Static Public Member Functions

static Buffer MakeCopiedBuffer (void *srcBufferPtr, const uint64_t capacity)
static Buffer MakeMovedBuffer (void *srcBufferPtr, const uint64_t capacity)

Protected Member Functions

 Buffer (void *bufferPtr, const uint64_t capacity)

Protected Attributes

Byte * bufferPtr = nullptr
uint64_t capacity = 0

The documentation for this class was generated from the following file:
  • /github/workspace/sources/code/Common/Buffer.hpp