DarkflameServer/dCommon/BinaryIO.cpp
David Markowitz d8476b7325 working
End of optimizations for now

going faster
2023-11-21 01:10:06 -08:00

18 lines
322 B
C++

#include "BinaryIO.h"
#include <string>
//For reading null-terminated strings
std::string BinaryIO::ReadString(std::istream& instream) {
std::string toReturn;
char buffer;
BinaryIO::BinaryRead(instream, buffer);
while (buffer != 0x00) {
toReturn += buffer;
BinaryRead(instream, buffer);
}
return toReturn;
}