freeBuffers method
void
freeBuffers()
Releases any cached input/output scratch buffers while keeping the context.
Implementation
void freeBuffers() {
final r = res;
if (r.inPtr != ffi.nullptr) {
calloc.free(r.inPtr);
r.inPtr = ffi.nullptr;
}
if (r.outPtr != ffi.nullptr) {
calloc.free(r.outPtr);
r.outPtr = ffi.nullptr;
}
r.inCapacity = 0;
r.outCapacity = 0;
}