Introduce FastCircularBuffer
This commit is contained in:
17
include/PSX/Auxiliary/array_range.hpp
Normal file
17
include/PSX/Auxiliary/array_range.hpp
Normal 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__
|
Reference in New Issue
Block a user