This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "util/StreamHelpers.h"
namespace RBX
{
void readStreamIntoString(std::istream &stream, std::string& content)
{
size_t contentLength = 0;
stream.seekg(0, std::ios::end);
contentLength = static_cast<size_t>(stream.tellg());
stream.seekg(0, std::ios::beg);
content = std::string(contentLength, '\0');
stream.read(&content[0], contentLength);
}
} // RBX