aboutsummaryrefslogtreecommitdiff
path: root/src/util/serialize.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Optimize JSON string (de)serialization routinessfan52022-05-211-104/+113
| | | | | | 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.
* Improve testSerializeJsonString unit testssfan52022-05-211-3/+0
| | | | | this also removes the requirement that / is escaped, there is no reason for doing so.
* Make sure relevant std::stringstreams are set to binarysfan52021-09-111-3/+2
|
* (se)SerializeString: Include max length in the nameSmallJoker2020-10-011-56/+7
| | | | | | | 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
* Clean up serializationSmallJoker2020-10-011-349/+0
| | | | | | | | 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.
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-271-9/+8
|
* Network: Send IEEE floats (#7768)SmallJoker2018-12-131-0/+2
|
* Move files to subdirectories (#6599)Vitaliy2017-11-081-2/+2
| | | | * Move files around
* serialize: use a temporary for SerializeExceptionLoïc Blot2017-08-211-2/+0
| | | | Exception must always use temporary instead of global copied exception instances, it's not recommended and should have undefined issues
* Code modernization: subfolders (#6283)Loïc Blot2017-08-191-9/+11
| | | | | | | | | | | | | * 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
* C++11 cleanup on constructors (#6000)Vincent Glize2017-06-191-3/+3
| | | | * C++11 cleanup on constructors dir script
* Add ItemStack key-value meta storagerubenwardy2017-02-041-0/+49
|
* Fix misc. MinGW and Valgrind warningskwolekr2015-11-081-1/+1
|
* Add BufReader and vector-based serialization methodskwolekr2015-10-151-0/+71
|
* Clean up util/serialization.{cpp,h} and add unit testskwolekr2015-08-011-7/+7
|
* Increase limit of serialized long stringskwolekr2015-07-141-2/+8
|
* Add more robust error checking to deSerialize*String routineskwolekr2015-07-131-97/+178
| | | | | Add serializeHexString() Clean up util/serialize.cpp
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-071-2/+0
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova2014-11-211-6/+6
| | | | | | | | | | | | | | | | | | | | | 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>
* Fix serializing of signed numbers in serializeStructToStringShadowNinja2014-03-211-3/+8
|
* Make serializeStructToString use an ostringstreamShadowNinja2014-03-151-43/+26
|
* Revert "Use fixed-width format specifiers in serializeStructToString"ShadowNinja2014-03-141-5/+4
| | | | | This reverts commit 875f1327a47f78d783c3abc7f7acc3977dc286ec. Fixed width format specifiers are only officially availale in C99 and C++11.
* Use fixed-width format specifiers in serializeStructToStringShadowNinja2014-03-131-3/+4
|
* Replace usage of long long with u64/s64ShadowNinja2014-03-121-1/+2
|
* Add minetest.set_noiseparam_defaults() Lua APIkwolekr2014-02-151-0/+271
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-141-0/+102
|
* Update Copyright YearsSfan52013-02-241-1/+1
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-241-1/+1
|
* Initially split utility.h to multiple files in util/Perttu Ahola2012-06-171-0/+119