|
|
@ -142,11 +142,9 @@ public:
|
|
|
|
///Read in a string of the given length
|
|
|
|
///Read in a string of the given length
|
|
|
|
std::string getSizedString(size_t length)
|
|
|
|
std::string getSizedString(size_t length)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::vector<char> str(length + 1, 0);
|
|
|
|
std::string str(length, '\0');
|
|
|
|
|
|
|
|
|
|
|
|
inp->read(str.data(), length);
|
|
|
|
inp->read(str.data(), length);
|
|
|
|
|
|
|
|
return str;
|
|
|
|
return str.data();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
///Read in a string of the length specified in the file
|
|
|
|
///Read in a string of the length specified in the file
|
|
|
|
std::string getSizedString()
|
|
|
|
std::string getSizedString()
|
|
|
|