From 4c76b275907cf2d764f3fc51468d1c58635a10c1 Mon Sep 17 00:00:00 2001 From: Theresa Foley <10618364+tangent-vector@users.noreply.github.com> Date: Mon, 12 May 2025 10:28:05 -0700 Subject: Cleanups related to RIFF support (#7041) --- source/core/slang-stream.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/core/slang-stream.h') diff --git a/source/core/slang-stream.h b/source/core/slang-stream.h index 78664c17a..0a5adbde8 100644 --- a/source/core/slang-stream.h +++ b/source/core/slang-stream.h @@ -303,6 +303,12 @@ struct StreamUtil /// Appends all bytes that can be read from stream into bytes static SlangResult readAll(Stream* stream, size_t readSize, List& ioBytes); + /// Appends all bytes that can be read from stream into bytes + static SlangResult readAll(Stream* stream, List& ioBytes) + { + return readAll(stream, 0, ioBytes); + } + /// Read as much as can be read until a 0 sized read, or an error and append onto ioBytes /// Read size controls the size of each buffer read. Passing 0, will use the default read size. static SlangResult read(Stream* stream, size_t readSize, List& ioBytes); -- cgit v1.2.3