QsBuffer.h 411 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <QtWidgets/qwidget.h>
  3. #include <string>
  4. #include <Kaguya/kaguya.hpp>
  5. #include "ybase/buffer.h"
  6. class QsBuffer :public ylib::buffer
  7. {
  8. public:
  9. QsBuffer();
  10. ~QsBuffer();
  11. static void regist(kaguya::State& T);
  12. public:
  13. static QsBuffer fromString(const std::string& value);
  14. void append(unsigned long long data_point,unsigned int length);
  15. bool saveToFile(const std::string& filepath);
  16. };