Simulated load of a file

This commit is contained in:
2023-03-03 14:33:29 +01:00
parent c7923c245c
commit 45371bc2f0
7 changed files with 106 additions and 38 deletions

View File

@@ -17,10 +17,12 @@ namespace JabyEngine {
public:
FastCircularBuffer() = default;
void setup(T* buffer_start_adr) {
size_t setup(T* buffer_start_adr) {
this->start_adr = buffer_start_adr;
this->read_idx = 0;
this->write_idx = 0;
return (sizeof(T)*ElementCount);
}
T* allocate() {