
18 Oct
2024
18 Oct
'24
4:19 p.m.
These days, I'm passing std::span<const std::byte> for binary blobs. This a C++17 lib, so no std::span, but please do consider std::byte at least. --DD
PS: I used https://github.com/tcbrindle/span in C++17. Maybe Boost has a span?
boost::core::span is C++11. I haven't looked at the implementation yet, but I'm assuming that owning types are being used for a reason.