Summary
At the moment, the interface has elements that are unsafe for modern C++. No Bounds Checks, Raw pointers, buffer size as a variable & no tests to cover misusage.
Suggested Fixes:
- Bounds checking functions for debug builds.
- std::span to remove the need for raw pointers & buffer size variable.
- BDD (Behaviour Driven Development) testing common usage and misusage.
Summary
At the moment, the interface has elements that are unsafe for modern C++. No Bounds Checks, Raw pointers, buffer size as a variable & no tests to cover misusage.
Suggested Fixes: