Buffer.cpp 181 B

123456789101112
  1. #include "utils/Buffer.h"
  2. Buffer::Buffer(int n) : data(n) {
  3. }
  4. int Buffer::getLength() const {
  5. return length;
  6. }
  7. Buffer::operator const char*() const {
  8. return &(data[0]);
  9. }