C3Spline/Bezier3/CatmullRom (10-slot vtable, NaN-safe t clamps, ISetPoints counts per the binary), CMath fnotequal family returning true for NaN, CMemBlock, NTempest, C33/C44Matrix, C3Vector, CAaBox, and CRange::Random (0x4C5D40) / CRandom::ufloat_(float, CRndSeed&) (0x982310, __stdcall per its retn 8) for SoundInterface. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
25 lines
749 B
C++
25 lines
749 B
C++
#ifndef ENGINE_SOURCE_TEMPEST_CMEMBLOCK_H
|
|
#define ENGINE_SOURCE_TEMPEST_CMEMBLOCK_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
class CMemBlock {
|
|
public:
|
|
static void Set32b_(uint32_t* dest, uint32_t value, uint32_t bytes);
|
|
static void Set32b_(uint8_t* dest, uint8_t value, uint32_t bytes);
|
|
static void SetM_(uint8_t* dest, uint8_t value, uint32_t bytes);
|
|
|
|
/* 0004 */ uint8_t* m_block;
|
|
/* 0008 */ uint32_t m_blockSize;
|
|
/* 000C */ uint8_t* m_data;
|
|
/* 0010 */ uint32_t m_size;
|
|
|
|
CMemBlock(uint32_t size, uint32_t offset, const char* name, int32_t line);
|
|
virtual ~CMemBlock();
|
|
void Constructor_(uint32_t size, uint32_t offset, const char* name, int32_t line);
|
|
bool Resize(uint32_t size, bool keep);
|
|
};
|
|
|
|
#endif
|