aboutsummaryrefslogtreecommitdiff
path: root/zencore/iobuffer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-formatStefan Boberg2022-02-021-1/+1
|
* Format fix.Per Larsson2022-01-221-3/+5
|
* Fixed up compile errors if mimalloc use is disabledMartin Ridgers2022-01-141-0/+1
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-4/+2
|
* Merged main.Per Larsson2021-12-141-13/+18
|\
| * Dependent variable definition as inside a if-Windows blockMartin Ridgers2021-12-081-6/+7
| |
| * Merged mainMartin Ridgers2021-12-081-24/+31
| |\
| * \ Merged mainMartin Ridgers2021-10-251-1/+1
| |\ \
| * | | Implemented ReadFromFileMaybe() for POSIXMartin Ridgers2021-10-181-4/+8
| | | |
| * | | Merged mainMartin Ridgers2021-10-161-2/+7
| |\ \ \
| * \ \ \ Merged mainMartin Ridgers2021-10-151-24/+59
| |\ \ \ \
| * | | | | Use std::fs::path for IoBuffer::MakeFromFile().Martin Ridgers2021-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more consistent with MakeFromTempFile() and almost all arguments are path objects anyway.
* | | | | | Format fix.Per Larsson2021-12-091-1/+1
| | | | | |
* | | | | | Merged main.Per Larsson2021-12-091-24/+31
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Fixes from code reviewMatt Peters2021-12-031-5/+7
| | | | | |
| * | | | | Make IoBufferCore::Materialize threadsafeMatt Peters2021-12-021-24/+29
| | |_|_|/ | |/| | |
* / | | | clang-formatStefan Boberg2021-10-231-1/+1
|/ / / /
* | | / Format fix.Per Larsson2021-10-201-1/+1
| |_|/ |/| |
* | | zencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ↵Stefan Boberg2021-10-151-2/+7
| |/ |/| | | | | | | | | | | | | are used without an explicit definition Also fixed up various code to compile with this, by using ZEN_THIRD_PARTY_INCLUDES_START/ZEN_THIRD_PARTY_INCLUDES_END macros Removed prewindows.h/postwindows.h since they are no longer to be used due to the above
* | asio HTTP implementation (#23)Stefan Boberg2021-10-141-24/+59
|/ | | asio-based HTTP implementation
* iobuffer: Changed MakeFromTemporaryFile so it accepts a path instead of a ↵Stefan Boberg2021-10-081-3/+3
| | | | character pointer
* Added explicit mimalloc IoBuffer allocation pathStefan Boberg2021-10-011-38/+43
|
* memory: Added experimental mimalloc path to AlignedAllocImpl/AlignedFreeImplStefan Boberg2021-09-301-9/+28
| | | | | | Also added similar path to IoBuffer Cannot be enabled at the moment as we end up passing pointers to std::free via some path so more work will be necessary
* Merged latest from mainStefan Boberg2021-09-271-9/+17
|\
| * Added HashBuffer(IoBuffer&) overload with trivial (but inappropriate for the ↵Stefan Boberg2021-09-231-0/+8
| | | | | | | | longer term) implementation
* | Merged main into linux-macMartin Ridgers2021-09-211-2/+7
|\|
| * It's not possible to compile out testsStefan Boberg2021-09-201-2/+7
| | | | | | | | Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
* | Removed external linkage from g_MappingLockMartin Ridgers2021-09-161-1/+1
| |
* | MakeFromTemporaryFile() on POSIXMartin Ridgers2021-09-161-7/+26
| |
* | MakeFromFile() on POSIXMartin Ridgers2021-09-161-23/+43
| |
* | Implementation of IoBufferExtendedCore() using mmap()Martin Ridgers2021-09-161-6/+36
| |
* | Use std::fs::path::value_type instead of wchar_t for path stringsMartin Ridgers2021-09-161-2/+2
| |
* | Merge from mainMartin Ridgers2021-09-161-15/+2
|\|
| * Removed unnecessary arguments from IoBuffer::MakeFromTemporaryFile since ↵Stefan Boberg2021-09-161-15/+2
| | | | | | | | they make no real sense
* | Merge from mainMartin Ridgers2021-09-161-1/+1
|\|
| * Fixed up invalid fmt formatting stringsStefan Boberg2021-09-151-1/+1
| |
* | Missing includeMartin Ridgers2021-09-161-0/+1
| |
* | Incorrect fmt format syntax causing compile errors with GCCMartin Ridgers2021-09-161-2/+2
| |
* | Use Memory::* API for IoBufferCore::Alloc/FreeBuffer on non-WindowsMartin Ridgers2021-09-161-0/+4
|/
* Changed logging implementationStefan Boberg2021-09-151-1/+1
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* Changed direct includes of spdlog/spdlog.h into zencore/logging.h to make it ↵Stefan Boberg2021-09-151-1/+1
| | | | easier to tweak implementation
* Added some argument validationStefan Boberg2021-08-311-3/+17
|
* Added file names to IoBuffer exception contextStefan Boberg2021-08-241-3/+7
|
* Added some context to MapViewOfFile exception emitStefan Boberg2021-08-241-2/+6
|
* Fixed logic in IoBufferExtendedCore::Materialize() - would previously map ↵Stefan Boberg2021-08-231-2/+1
| | | | the wrong amount of memory for misaligned chunks
* Added content type to IoBuffer payloads from http serverStefan Boberg2021-05-231-0/+2
| | | | Also added some additional logic for flagging buffer immutability
* Added logic to guard against accidental file move in file CAS fast pathStefan Boberg2021-05-131-2/+5
| | | | Now verifies the chunk is referencing an entire file before moving it into place
* Implemented move-in-place for large CAS payloadsStefan Boberg2021-05-131-0/+35
|
* Made SharedBuffer/UniqueBuffer share guts with IoBufferStefan Boberg2021-05-131-6/+14
| | | | This enables way more efficient marshaling of compact binary objects and attachments
* Adding zenservice codeStefan Boberg2021-05-111-0/+341