mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 21:43:35 +00:00
e58218cfbc
* Remove std::couts littered throughout the base * working End of optimizations for now going faster * Remove extraneous compare function std::less<LWOSCENEID> already does this in a map. * gaming * Update Zone.cpp * dlu is moving to bitbucket again * Update Level.cpp --------- Co-authored-by: Jettford <mrjettbradford@gmail.com>
18 lines
322 B
C++
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;
|
|
}
|