Working on probe: drv_call_function can now return a string

This commit is contained in:
2024-09-04 21:00:47 -04:00
parent a6e68cbb35
commit 43a02db7f3
7 changed files with 35 additions and 25 deletions

View File

@@ -424,10 +424,10 @@ public:
//
void clear() {
assert(owned_);
if (!fixed_size_) {
if (buf_lo_ != nullptr) CoreHandler::basebuffer_free(buf_lo_);
buf_lo_ = 0;
buf_hi_ = 0;
if ((!fixed_size_) && (buf_lo_ != nullptr) && ((buf_hi_ - buf_lo_) > 100000)) {
CoreHandler::basebuffer_free(buf_lo_);
buf_lo_ = nullptr;
buf_hi_ = nullptr;
}
owned_ = true;
read_cursor_ = buf_lo_;