Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (30 sloc) 655 Bytes
#include <cstdint>
#include <stdlib.h>
namespace memtools {
class LinearBuffer
// Ctor
explicit LinearBuffer(size_t bytes);
// Ctor on pre-allocated memory
explicit LinearBuffer(void *, size_t bytes);
// Dtor
// Allocate memory
void *allocate(size_t bytes);
// Reset the whole buffer
void reset();
// Start address of the buffer
uint8_t *memStart_;
// Size of the buffer in bytes
uint32_t size_;
// Current size of the buffer
uint32_t offset_;
// EO Class
// EO Namespace