Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Overhaul endian handling in ByteBuffer and FastNBT (#5543) | Ash | 48 hours | 1 | -63/+120 |
| | | | | | | | | | | | | | | | * Overhaul endian handling in ByteBuffer and FastNBT Rather than juggling "swapped" and "unswapped" versions of integers, different library functions, #defines, etc., simply always read everything byte-by-byte. This works regardless of host CPU endian, got optimised down to either a normal load or a byteswap on every compiler I tested - only 1 instruction on most CPU architectures. This commit introduces a "Bytes" array type to keep endian-sensitive data seperate from host data, alongside the needed C++ template machinery for it to work seamlessly. This approach is a little bit safer as well since you get length- and type-checking for most callsites. * Remove remaining references to old-style endianness conversion, remove functions themselves. --------- Co-authored-by: Alexander Harkness <me@bearbin.net> | ||||
* | Fixes compilation failures on MacOSX 10.10 | Samuel Barney | 2015-07-09 | 1 | -2/+2 |
| | | | | | * Replace old c-style casts with c++ casts * Added `-Wno-error=old-style-cast` to Protocol18x.cpp | ||||
* | CheckBasicStyle: checks spaces around * and &. | Mattes D | 2015-05-09 | 1 | -1/+1 |
| | |||||
* | Unified cByteBuffer types. | Mattes D | 2015-03-21 | 1 | -0/+12 |
| | | | | cByteBuffer now reads and writes any of the [U]Int<N> types. | ||||
* | Changed Variable types of Endianness.h to uniform UInt* types from Globals.h | bibo38 | 2015-03-17 | 1 | -4/+4 |
| | |||||
* | Fixed double underscore identifiers in the Endianess.h file, which are reserved for implementation use. Bug #1715 | bibo38 | 2015-03-17 | 1 | -8/+8 |
| | |||||
* | Endianness.h: undefined ntohll before redefining | archshift | 2014-07-26 | 1 | -0/+1 |
| | |||||
* | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 2014-07-21 | 1 | -5/+5 |
| | |||||
* | Fixed Endiannes conversion routines for floats and doubles. | madmaxoft | 2014-04-05 | 1 | -2/+2 |
| | | | | | This bug has been introduced in 8825d30aabbee8cb2e452dc5a17deb6f9b6892a7. This change fixes #854. | ||||
* | Fixed some Clang warnings in protocols. | madmaxoft | 2014-04-04 | 1 | -14/+17 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+70 |