This commit is contained in:
azw 2023-05-08 11:03:26 +00:00
parent 543969a5e8
commit 278f1aa616

View File

@ -7,12 +7,18 @@ namespace a8
OrderBuffer::OrderBuffer(int buf_len)
{
if (buf_len <= 0) {
abort();
}
buf_ = (char*)malloc(buf_len);
buf_len_ = buf_len;
}
OrderBuffer::~OrderBuffer()
{
free(buf_);
buf_ = nullptr;
buf_len_ = 0;
}
char* OrderBuffer::Alloc(int len)