From 5ae87922cb96810a05b2262c66b55b7e8f00e46d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 18 Apr 2017 11:54:04 -0400 Subject: Update IFGAS_Stream::WriteString to take a string. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl updates the WriteString method to accept a CFX_WideString. Change-Id: I9f480abf32f4132f8ca33799e673a9e8540285f6 Reviewed-on: https://pdfium-review.googlesource.com/4151 Reviewed-by: Nicolás Peña Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fgas/crt/ifgas_stream.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xfa/fgas/crt/ifgas_stream.h') diff --git a/xfa/fgas/crt/ifgas_stream.h b/xfa/fgas/crt/ifgas_stream.h index 658afe73bf..be42fe5ca3 100644 --- a/xfa/fgas/crt/ifgas_stream.h +++ b/xfa/fgas/crt/ifgas_stream.h @@ -34,15 +34,13 @@ class IFGAS_Stream : public CFX_Retainable { virtual FX_STRSIZE ReadString(wchar_t* pStr, FX_STRSIZE iMaxLength, bool* bEOS) = 0; - virtual void WriteData(const uint8_t* pBuffer, FX_STRSIZE iBufferSize) = 0; - virtual void WriteString(const wchar_t* pStr, FX_STRSIZE iLength) = 0; + virtual void WriteString(const CFX_WideStringC& str) = 0; virtual uint16_t GetCodePage() const = 0; virtual void SetCodePage(uint16_t wCodePage) = 0; protected: virtual bool IsEOF() const = 0; - virtual FX_STRSIZE ReadData(uint8_t* pBuffer, FX_STRSIZE iBufferSize) = 0; }; #endif // XFA_FGAS_CRT_IFGAS_STREAM_H_ -- cgit v1.2.3