/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Base/util/StreamHelpers.cpp
15 строк
421 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#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