aboutsummaryrefslogtreecommitdiff
path: root/src/util/container.h
Commit message (Expand)AuthorAge
* Move files to subdirectories (#6599)Vitaliy2017-11-08
* Code modernization: subfolders (#6283)Loïc Blot2017-08-19
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-06
* Clean up threadingShadowNinja2015-08-23
* Add AreaStore data structureest312015-07-27
* MutexedQueue inherits must use std::deque instead of std::listLoic Blot2015-03-17
* Remove Queue class which uses std::list and use native std::queueLoic Blot2015-03-05
* Use std::vector instead of std::list in StaticObjectList and MutexedMap::getV...Loic Blot2015-03-04
* Change UniqueQueue to use a queue and a set.unknown2015-01-15
* Make MutexQueue use jsemaphore for signalingsapier2014-01-10
* Implement httpfetch module and initialize it from main()Kahrl2013-12-13
* Cleanup jthread and fix win32 buildsapier2013-12-01
* Always use builtin JThread librarykwolekr2013-09-15
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Add texture pack selection to main menuNovatux2013-08-04
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* On-demand item meshes and texturesPerttu Ahola2012-12-02
* Initially split utility.h to multiple files in util/Perttu Ahola2012-06-17
="hl com"> 17: MapBlocks contain timestamp 18: new generator (not really necessary, but it's there) 19: new content type handling 20: many existing content types translated to extended ones 21: dynamic content type allocation 22: minerals removed, facedir & wallmounted changed 23: new node metadata format 24: 16-bit node ids and node timers (never released as stable) 25: Improved node timer format 26: Never written; read the same as 25 */ // This represents an uninitialized or invalid format #define SER_FMT_VER_INVALID 255 // Highest supported serialization version #define SER_FMT_VER_HIGHEST_READ 26 // Saved on disk version #define SER_FMT_VER_HIGHEST_WRITE 25 // Lowest supported serialization version #define SER_FMT_VER_LOWEST_READ 0 // Lowest serialization version for writing // Can't do < 24 anymore; we have 16-bit dynamically allocated node IDs // in memory; conversion just won't work in this direction. #define SER_FMT_VER_LOWEST_WRITE 24 inline bool ser_ver_supported(s32 v) { return v >= SER_FMT_VER_LOWEST_READ && v <= SER_FMT_VER_HIGHEST_READ; } /* Misc. serialization functions */ void compressZlib(SharedBuffer<u8> data, std::ostream &os, int level = -1); void compressZlib(const std::string &data, std::ostream &os, int level = -1); void decompressZlib(std::istream &is, std::ostream &os); // These choose between zlib and a self-made one according to version void compress(SharedBuffer<u8> data, std::ostream &os, u8 version); //void compress(const std::string &data, std::ostream &os, u8 version); void decompress(std::istream &is, std::ostream &os, u8 version); #endif