9 #include "quill/core/Attributes.h" 10 #include "quill/core/Codec.h" 11 #include "quill/core/DynamicFormatArgStore.h" 12 #include "quill/core/Filesystem.h" 13 #include "quill/core/InlinedVector.h" 15 #include "quill/bundled/fmt/format.h" 16 #include "quill/bundled/fmt/std.h" 21 #include <type_traits> 24 #include "quill/std/WideString.h" 32 static size_t compute_encoded_size(
detail::SizeCacheVector& conditional_arg_size_cache, fs::path
const& arg) noexcept
34 if constexpr (std::is_same_v<fs::path::string_type, std::string>)
39 else if constexpr (std::is_same_v<fs::path::string_type, std::wstring>)
47 uint32_t& conditional_arg_size_cache_index, fs::path
const& arg) noexcept
49 if constexpr (std::is_same_v<fs::path::string_type, std::string>)
52 conditional_arg_size_cache_index, arg.string());
55 else if constexpr (std::is_same_v<fs::path::string_type, std::wstring>)
58 conditional_arg_size_cache_index, arg.wstring());
63 static fs::path decode_arg(std::byte*& buffer)
65 if constexpr (std::is_same_v<fs::path::string_type, std::string>)
70 else if constexpr (std::is_same_v<fs::path::string_type, std::wstring>)
79 args_store->
push_back(decode_arg(buffer));
typename = void for specializations with enable_if
Definition: Codec.h:144