aboutsummaryrefslogtreecommitdiff
path: root/src/util/serialize.cpp
AgeCommit message (Collapse)Author
2022-05-21Optimize JSON string (de)serialization routinessfan5
stringstreams were shown to be slow when reading/writing single characters and there is lots of potential by having functions perform on existing buffers whenever possible.
2022-05-21Improve testSerializeJsonString unit testssfan5
this also removes the requirement that / is escaped, there is no reason for doing so.
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2020-10-01Clean up serializationSmallJoker
This reverts 1a5b4b3 and further functions in serialize.cpp that are unused The intend for a sane NetworkPacket/stream replacement was good, but a wrapper class around i/ostream might be more versatile than introducing a new vector-based serialization class.
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2018-12-13Network: Send IEEE floats (#7768)SmallJoker
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-08-21serialize: use a temporary for SerializeExceptionLoïc Blot
Exception must always use temporary instead of global copied exception instances, it's not recommended and should have undefined issues
2017-08-19Code modernization: subfolders (#6283)Loïc Blot
* Code modernization: subfolders Modernize various code on subfolders client, network, script, threading, unittests, util * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Make connection.cpp readable in a pointed place + typo
2017-06-19C++11 cleanup on constructors (#6000)Vincent Glize
* C++11 cleanup on constructors dir script
2017-02-04Add ItemStack key-value meta storagerubenwardy
2015-11-08Fix misc. MinGW and Valgrind warningskwolekr
2015-10-15Add BufReader and vector-based serialization methodskwolekr
2015-08-01Clean up util/serialization.{cpp,h} and add unit testskwolekr
2015-07-14Increase limit of serialized long stringskwolekr
2015-07-13Add more robust error checking to deSerialize*String routineskwolekr
Add serializeHexString() Clean up util/serialize.cpp
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2014-11-21serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova
previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000() nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-03-21Fix serializing of signed numbers in serializeStructToStringShadowNinja
2014-03-15Make serializeStructToString use an ostringstreamShadowNinja
2014-03-14Revert "Use fixed-width format specifiers in serializeStructToString"ShadowNinja
This reverts commit 875f1327a47f78d783c3abc7f7acc3977dc286ec. Fixed width format specifiers are only officially availale in C99 and C++11.
2014-03-13Use fixed-width format specifiers in serializeStructToStringShadowNinja
2014-03-12Replace usage of long long with u64/s64ShadowNinja
2014-02-15Add minetest.set_noiseparam_defaults() Lua APIkwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-17Initially split utility.h to multiple files in util/Perttu Ahola