diff options
| author | sfan5 <sfan5@live.de> | 2021-09-17 18:14:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-17 18:14:25 +0200 |
| commit | fd8a8501bc26dfca2a93d51000867b8592210040 (patch) | |
| tree | 2555456796bc15f7ef0f2bc24c08b9848b874b4e /src/network/networkpacket.h | |
| parent | ea250ff5c57301b6ea3e529c811484c743c1fde1 (diff) | |
| download | minetest-fd8a8501bc26dfca2a93d51000867b8592210040.tar.xz | |
Shave off buffer copies in networking code (#11607)
Diffstat (limited to 'src/network/networkpacket.h')
| -rw-r--r-- | src/network/networkpacket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkpacket.h b/src/network/networkpacket.h index c7ff03b8e..b1c44f055 100644 --- a/src/network/networkpacket.h +++ b/src/network/networkpacket.h @@ -115,7 +115,8 @@ public: NetworkPacket &operator<<(video::SColor src); // Temp, we remove SharedBuffer when migration finished - SharedBuffer<u8> oldForgePacket(); + // ^ this comment has been here for 4 years + Buffer<u8> oldForgePacket(); private: void checkReadOffset(u32 from_offset, u32 field_size); |
