cpp-utilities/io
Martchus 07e9546855 Avoid relying on compiler optimizations for binary conversions
* Add/update binary conversion functions to use `std::memcopy`
* Only GCC could actually optimize the custom code using bit operations
    * Clang could only optimize the `getBytes()` functions
    * MSVC could not optimize any of the functions
* The to…Int…() functions cannot be updated as they are `constexpr` (and
  thus `std::memcopy` and `reinterpret_cast` cannot be used). So they stay
  as-is and `toInt()` has been added instead
* The `BinaryReader` class has been updated to use the new `toInt()`
  function
2023-02-05 21:29:22 +01:00
..
ansiescapecodes.cpp Mark formattedPhraseString() as experimental 2020-11-25 17:51:43 +01:00
ansiescapecodes.h Add –formattedPhraseString() 2020-11-18 00:37:43 +01:00
binaryreader.cpp Fix warnings 2021-03-20 21:56:45 +01:00
binaryreader.h Avoid relying on compiler optimizations for binary conversions 2023-02-05 21:29:22 +01:00
binarywriter.cpp Have everything in one top-level namespace 2019-06-10 21:56:46 +02:00
binarywriter.h Fix warnings 2021-03-20 21:56:45 +01:00
bitreader.cpp Fix warnings 2021-03-20 21:56:45 +01:00
bitreader.h Fix typos found via `codespell --skip .git -w` 2021-07-03 19:07:49 +02:00
buffersearch.cpp Use std::string_view::value_type in BufferSearch 2021-07-16 15:58:40 +02:00
buffersearch.h Use std::string_view::value_type in BufferSearch 2021-07-16 15:58:40 +02:00
copy.h Fix copy helper for large data sizes on 32-bit platforms 2022-07-14 00:30:40 +02:00
inifile.cpp Add TODO for AdvancedIniFile 2020-06-04 20:49:25 +02:00
inifile.h Initialize AdvancedIniFile::Field by default with IniFileFieldFlags::HasValue 2020-05-01 13:58:44 +02:00
misc.cpp Fix missing `#pragma GCC diagnostic push` 2022-05-21 12:13:01 +02:00
misc.h Add `std::string_view` overloads to certain I/O functions 2022-03-04 21:04:22 +01:00
nativefilestream.cpp Improve exception messages of NativeFileStream 2020-02-14 17:13:05 +01:00
nativefilestream.h Mark destructor of NativeFileStream as override 2020-12-18 21:09:35 +01:00
path.cpp Add `std::string_view` overloads to certain I/O functions 2022-03-04 21:04:22 +01:00
path.h Add helper to make native path from internal representaton 2022-03-17 22:31:11 +01:00