mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
8
libs/coding/reader.cpp
Normal file
8
libs/coding/reader.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "coding/reader.hpp"
|
||||
|
||||
void Reader::ReadAsString(std::string & s) const
|
||||
{
|
||||
s.clear();
|
||||
s.resize(static_cast<size_t>(Size()));
|
||||
Read(0 /* pos */, s.data(), s.size());
|
||||
}
|
||||
Reference in New Issue
Block a user