DataStorage.h 227 B

12345678910111213141516
  1. #pragma once
  2. class DataStorage {
  3. public:
  4. size_t length;
  5. char *bytes;
  6. private:
  7. size_t capacity;
  8. public:
  9. DataStorage();
  10. DataStorage(size_t size);
  11. ~DataStorage();
  12. void appendBytes(const void *ptr, size_t size);
  13. };