OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FGAS_CRT_FGAS_STREAM_H_ | 7 #ifndef XFA_FGAS_CRT_FGAS_STREAM_H_ |
8 #define XFA_FGAS_CRT_FGAS_STREAM_H_ | 8 #define XFA_FGAS_CRT_FGAS_STREAM_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_stream.h" | 10 #include "core/include/fxcrt/fx_stream.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) = 0; | 61 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) = 0; |
62 virtual int32_t ReadString(FX_WCHAR* pStr, | 62 virtual int32_t ReadString(FX_WCHAR* pStr, |
63 int32_t iMaxLength, | 63 int32_t iMaxLength, |
64 FX_BOOL& bEOS, | 64 FX_BOOL& bEOS, |
65 int32_t const* pByteSize = NULL) = 0; | 65 int32_t const* pByteSize = NULL) = 0; |
66 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) = 0; | 66 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) = 0; |
67 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) = 0; | 67 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) = 0; |
68 virtual void Flush() = 0; | 68 virtual void Flush() = 0; |
69 virtual FX_BOOL SetLength(int32_t iLength) = 0; | 69 virtual FX_BOOL SetLength(int32_t iLength) = 0; |
70 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; | 70 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; |
71 virtual FX_WORD GetCodePage() const = 0; | 71 virtual uint16_t GetCodePage() const = 0; |
72 virtual FX_WORD SetCodePage(FX_WORD wCodePage) = 0; | 72 virtual uint16_t SetCodePage(uint16_t wCodePage) = 0; |
73 virtual IFX_Stream* CreateSharedStream(FX_DWORD dwAccess, | 73 virtual IFX_Stream* CreateSharedStream(FX_DWORD dwAccess, |
74 int32_t iOffset, | 74 int32_t iOffset, |
75 int32_t iLength) = 0; | 75 int32_t iLength) = 0; |
76 }; | 76 }; |
77 | 77 |
78 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_ | 78 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_ |
OLD | NEW |