diff options
| author | Theresa Foley <10618364+tangent-vector@users.noreply.github.com> | 2025-05-12 10:28:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-12 17:28:05 +0000 |
| commit | 4c76b275907cf2d764f3fc51468d1c58635a10c1 (patch) | |
| tree | 201a353c2b64b258760c370e641821ec5f6eff85 /source/core/slang-stream.h | |
| parent | 6b286bfbdf85e40cac1ee325384f535df969938a (diff) | |
Cleanups related to RIFF support (#7041)
Diffstat (limited to 'source/core/slang-stream.h')
| -rw-r--r-- | source/core/slang-stream.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<Byte>& ioBytes); + /// Appends all bytes that can be read from stream into bytes + static SlangResult readAll(Stream* stream, List<Byte>& 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<Byte>& ioBytes); |
