summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Willers <M.Willers@gmx.net>2020-04-21 17:15:30 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-05-18 08:21:27 +0900
commit1e414546eaf2049136af33029b9e6df8356fce95 (patch)
tree9c4f51975dcc8e1167f6ff2d675876970eb6b7fa /include
parent179150f7d52abbb1d923da0c35d4a715ade382b0 (diff)
downloadDLT-daemon-1e414546eaf2049136af33029b9e6df8356fce95.tar.gz
Add helper function for writing strings with known sizes
This use case is common in C++ code nowadays, due to the usage of e.g. std::string_view, which does not provide a function for retrieving a null-terminated C-string, but which provides quick access to the string length via std::string_view::size(). Such use cases can now avoid an entirely unnecessary strlen() call. Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions