From 9c2d1766ea33101b551ac521ddc39516b98b6641 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 23 Oct 2019 09:28:58 -0400 Subject: Expose more repro in API, support output params. (#1087) * Added spEnableReproCapture to the API. * Added MemoryStreamBase - which can be used to read from without copyin the data. Added the missing Repro API functions - spEnableReproCapture and spExtractRepro. Added support for serializing output filenames. * Improved naming around Stream. Brought Stream and sub types closer to code conventions. * Renamed content -> contents in Stream. --- source/slang/slang-file-system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-file-system.cpp') diff --git a/source/slang/slang-file-system.cpp b/source/slang/slang-file-system.cpp index 4ee961df5..7d6d6df66 100644 --- a/source/slang/slang-file-system.cpp +++ b/source/slang/slang-file-system.cpp @@ -138,7 +138,7 @@ SLANG_NO_THROW SlangResult SLANG_MCALL OSFileSystemExt::saveFile(const char* pat { FileStream stream(pathIn, FileMode::Create, FileAccess::Write, FileShare::ReadWrite); - int64_t numWritten = stream.Write(data, size); + int64_t numWritten = stream.write(data, size); if (numWritten != int64_t(size)) { -- cgit v1.2.3