diff --git a/Kernel/KBufferBuilder.h b/Kernel/KBufferBuilder.h index 62e4ec7582..affef2bbe8 100644 --- a/Kernel/KBufferBuilder.h +++ b/Kernel/KBufferBuilder.h @@ -45,6 +45,14 @@ public: void appendf(const char*, ...); void appendvf(const char*, va_list); + template + void appendff(StringView fmtstr, const Parameters&... parameters) + { + // FIXME: This is really not the way to go about it, but vformat expects a + // StringBuilder. Why does this class exist anyways? + append(String::formatted(fmtstr, parameters...)); + } + KBuffer build(); private: