Introduce FastCircularBuffer

This commit is contained in:
2022-12-19 21:01:59 +01:00
parent a47b94c3a9
commit a3a757e170
2 changed files with 50 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
#ifndef __JABYENGINE_ARRAY_RANGE_HPP__
#define __JABYENGINE_ARRAY_RANGE_HPP__
#include "../../stddef.h"
namespace JabyEngine {
template<typename T>
struct ArrayRange {
T* start = nullptr;
size_t size = 0;
constexpr ArrayRange() = default;
constexpr ArrayRange(T* start, size_t size) : start(start), size(size) {
}
};
}
#endif //!__JABYENGINE_ARRAY_RANGE_HPP__