mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
ff500a7b68
This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one. |
||
---|---|---|
.. | ||
set.cpp | ||
set.h | ||
set_cal.cpp | ||
set_cal.h | ||
set_fd.cpp | ||
set_fd.h | ||
set_sys.cpp | ||
set_sys.h | ||
settings.cpp | ||
settings.h |