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/core/slang-io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/core/slang-io.cpp') diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp index caa45c8f4..6cff8e1c9 100644 --- a/source/core/slang-io.cpp +++ b/source/core/slang-io.cpp @@ -660,10 +660,10 @@ namespace Slang { RefPtr fs = new FileStream(fileName, FileMode::Open, FileAccess::Read, FileShare::ReadWrite); List buffer; - while (!fs->IsEnd()) + while (!fs->isEnd()) { unsigned char ch; - int read = (int)fs->Read(&ch, 1); + int read = (int)fs->read(&ch, 1); if (read) buffer.add(ch); else -- cgit v1.2.3