Safer data handling#367
Conversation
|
There was a problem hiding this comment.
Pull Request Overview
This pull request implements safer data handling by introducing a type-safe TinyVec<T> container and replacing raw pointer/size pairs with tcb::span throughout the codebase.
Key Changes:
- Introduced
TinyVec<T>container as a replacement forstd::vectorand manual memory management - Replaced raw pointer/size parameter pairs with
tcb::spanfor safer data passing - Modernized API interfaces to use type-safe containers and views
Reviewed Changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/util/Base64Utils.cpp | Refactored Base64 encoding/decoding to use spans and TinyVec |
| src/serialization/ | Updated serialization callbacks to use spans instead of raw pointers |
| src/message_handlers/ | Converted WebSocket message handlers to use span parameters |
| src/WebSocketDeFragger.cpp | Replaced manual memory management with TinyVec |
| src/config/Config.cpp | Updated configuration handling to use TinyVec |
| include/ | Updated header files to use span and TinyVec types |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Cpp-Linter Report
|
No description provided.