3 ms·
What would this safe API look like? The only thing I can think of would be to have the kernel allocate memory in the process and return that pointer, rather tha
by wat10000 2y ago
What would this safe API look like? The only thing I can think of would be to have the kernel allocate memory in the process and return that pointer, rather than having the caller provide a buffer. Performance would be painful. Is there a faster way that preserves safety?
- LorenPechtel 2y agoNo allocation--it returns the address of a buffer in a pool. Of course this permits a resource leak. It's a problem with no real solution.