refactor: use std::endian directly, enum class EDefaultSkins, rename reserved-prefix helpers

This commit is contained in:
MatthewBeshay
2026-04-03 18:33:49 +11:00
parent 3f33bf4817
commit 5105f89648
93 changed files with 407 additions and 411 deletions

View File

@@ -4,7 +4,7 @@
#include <vector>
#include "Buffer.h"
#include "util/Definitions.h" // 4jcraft TODO
#include <bit>
class IntBuffer;
class FloatBuffer;
@@ -12,7 +12,7 @@ class FloatBuffer;
class ByteBuffer : public Buffer {
protected:
uint8_t* buffer;
ByteOrder byteOrder;
std::endian byteOrder;
public:
ByteBuffer(unsigned int capacity);
@@ -22,7 +22,7 @@ public:
static ByteBuffer* wrap(std::vector<uint8_t>& b);
static ByteBuffer* allocate(unsigned int capacity);
void order(ByteOrder a);
void order(std::endian a);
ByteBuffer* flip();
uint8_t* getBuffer();
int getSize();