How to Declare a C++ Function that Takes a Blob of Memory?
Summary
The article argues that using a simple void* pointer with a size parameter for memory blobs in C++ preserves readability and simplicity, criticizing the overuse of modern abstractions like uint8_t, std::span, and templates. It also suggests using SAL annotations to aid static analysis while maintaining a straightforward API.