mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
NetworkPacket: don't copy push std::string and std::wstring
This commit is contained in:
parent
093e621643
commit
b1e6c2a9b8
2 changed files with 6 additions and 6 deletions
|
@ -52,12 +52,12 @@ public:
|
|||
{ putRawString(src.c_str(), src.size()); }
|
||||
|
||||
NetworkPacket& operator>>(std::string& dst);
|
||||
NetworkPacket& operator<<(std::string src);
|
||||
NetworkPacket& operator<<(const std::string &src);
|
||||
|
||||
void putLongString(std::string src);
|
||||
void putLongString(const std::string &src);
|
||||
|
||||
NetworkPacket& operator>>(std::wstring& dst);
|
||||
NetworkPacket& operator<<(std::wstring src);
|
||||
NetworkPacket& operator<<(const std::wstring &src);
|
||||
|
||||
std::string readLongString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue