aboutsummaryrefslogtreecommitdiff
path: root/src/util/serialize.h
AgeCommit message (Collapse)Author
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-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
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-12-29Add macos/freebsd missing endian.h include and add win endianness infoqiukeren
2015-10-15Add BufReader and vector-based serialization methodskwolekr
2015-08-01Improve accuracy and safety of float serializationkwolekr
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly introduces an error of 1 ULP. With this patch, an exact comparison of a floating point literal with the deserialized F1000 form representing it is now guaranteed to be successful. In addition, the maxmium and minimum safely representible floating point numbers are now well-defined as constants.
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
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-04-12Fix write and read S32 vectorsBlockMen
2014-03-15Make serializeStructToString use an ostringstreamShadowNinja
2014-02-15Add minetest.set_noiseparam_defaults() Lua APIkwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-02-26Fix most warnings, re-fix MSVC compile errorkwolekr
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-12-02Const-correct util/serialize.hPerttu Ahola
2012-11-25Framework for the attachment system, new object property which allows ↵MirceaKitsune
changing the color and alpha of mesh materials New object property which allows changing the color and alpha of mesh materials. Due to the current lighting systems it doesn't work yet, but the full implementation is there Framework for the attachment system, with no actual functionality yet Send bone and player object to the setAttachment function in content_sao.cpp, but we need a way to translate it there and send it to the client I will also want position and rotation offsets to be possible to apply to attachments Network object ID from server to client. This will be used to identify the parent client-side and know what to attach to
2012-06-17Optimize headersPerttu Ahola
2012-06-17Initially split utility.h to multiple files in util/Perttu Ahola