summaryrefslogtreecommitdiff
path: root/source/core/slang-string-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-string-util.h')
-rw-r--r--source/core/slang-string-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-string-util.h b/source/core/slang-string-util.h
index 9e7b2d65a..4f4368ba3 100644
--- a/source/core/slang-string-util.h
+++ b/source/core/slang-string-util.h
@@ -135,6 +135,11 @@ struct StringUtil
/// Create a string from the format string applying args (like sprintf)
static String makeStringWithFormat(const char* format, ...);
+ /// Create a string from the format string and arguments in a buffer.
+ static String makeStringWithFormatFromArgArray(
+ const char* format,
+ ArrayView<const void*> ptrToArgs);
+
/// Given a string held in a blob, returns as a String
/// Returns an empty string if blob is nullptr
static String getString(ISlangBlob* blob);