diff options
| author | Stefan Boberg <[email protected]> | 2025-03-11 09:58:07 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-03-11 09:58:07 +0100 |
| commit | 90db3ced033d4e06da2739e5d97cdeff2b0ba3b9 (patch) | |
| tree | 8c1375cc1217886ef51f8fd0c3460b274b82527c /src/zencore | |
| parent | pick up existing cache (#299) (diff) | |
| download | zen-90db3ced033d4e06da2739e5d97cdeff2b0ba3b9.tar.xz zen-90db3ced033d4e06da2739e5d97cdeff2b0ba3b9.zip | |
Build command tweaks (#301)
- Improvement: Don't chunk up .mp4 files as they generally won't benefit from deduplication or partial in-place-updates
- Improvement: Emit build name to console output when downloading a build
- Improvement: Added some debug logging
- Bugfix: Logging setup would previously not function correctly when not logging to file
Diffstat (limited to 'src/zencore')
| -rw-r--r-- | src/zencore/include/zencore/compactbinaryfmt.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/compactbinaryfmt.h b/src/zencore/include/zencore/compactbinaryfmt.h new file mode 100644 index 000000000..ae0c3eb42 --- /dev/null +++ b/src/zencore/include/zencore/compactbinaryfmt.h @@ -0,0 +1,23 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <zencore/compactbinary.h> + +ZEN_THIRD_PARTY_INCLUDES_START +#include <fmt/format.h> +ZEN_THIRD_PARTY_INCLUDES_END + +#include <string_view> + +template<typename T> +requires DerivedFrom<T, zen::CbObjectView> +struct fmt::formatter<T> : fmt::formatter<std::string_view> +{ + auto format(const zen::CbObject& a, format_context& ctx) const + { + zen::ExtendableStringBuilder<1024> ObjStr; + zen::CompactBinaryToJson(a, ObjStr); + return fmt::formatter<std::string_view>::format(ObjStr.ToView(), ctx); + } +}; |