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

Public Member Functions

 ResizableBuffer (uint64_t capacity)
 
 ResizableBuffer (const ResizableBuffer &other)
 
 ResizableBuffer (ResizableBuffer &&other) noexcept
 
virtual BufferView GetBufferView (uint64_t segmentOffset, uint64_t segmentSize) override
 
void * AddToBuffer (const void *srcPtr, uint64_t srcSize)
 
uint64_t GetSpaceLeft () const
 
uint64_t GetUsedSize () const
 
- Public Member Functions inherited from Grindstone::Buffer
 Buffer (uint64_t capacity)
 
 Buffer (void *bufferPtr, const uint64_t capacity)
 
 Buffer (const Buffer &other)
 
 Buffer (Buffer &&other) noexcept
 
void ZeroInitialize ()
 
Bufferoperator= (const Buffer &other)
 
Bufferoperator= (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
 

Protected Attributes

Byte * currentPtr = nullptr
 
uint64_t size = 0
 
- Protected Attributes inherited from Grindstone::Buffer
Byte * bufferPtr = nullptr
 
uint64_t capacity = 0
 

Member Function Documentation

◆ GetBufferView()

virtual BufferView Grindstone::ResizableBuffer::GetBufferView ( uint64_t segmentOffset,
uint64_t segmentSize )
inlineoverridevirtual

Reimplemented from Grindstone::Buffer.


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