| 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/fxcrt/include/fx_stream.h" | 10 #include "core/fxcrt/include/fx_stream.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
| 12 | 12 |
| 13 class IFX_Stream; | 13 class IFX_Stream; |
| 14 | 14 |
| 15 IFX_FileRead* FX_CreateFileRead(IFX_Stream* pBaseStream, | 15 IFX_FileRead* FX_CreateFileRead(IFX_Stream* pBaseStream, |
| 16 FX_BOOL bReleaseStream = FALSE); | 16 FX_BOOL bReleaseStream = FALSE); |
| 17 IFX_FileRead* FX_CreateFileRead(IFX_BufferRead* pBufferRead, | 17 |
| 18 FX_FILESIZE iFileSize = -1, | |
| 19 FX_BOOL bReleaseStream = TRUE); | |
| 20 IFX_FileWrite* FX_CreateFileWrite(IFX_Stream* pBaseStream, | |
| 21 FX_BOOL bReleaseStream = FALSE); | |
| 22 enum FX_STREAMACCESS { | 18 enum FX_STREAMACCESS { |
| 23 FX_STREAMACCESS_Binary = 0x00, | 19 FX_STREAMACCESS_Binary = 0x00, |
| 24 FX_STREAMACCESS_Text = 0x01, | 20 FX_STREAMACCESS_Text = 0x01, |
| 25 FX_STREAMACCESS_Read = 0x02, | 21 FX_STREAMACCESS_Read = 0x02, |
| 26 FX_STREAMACCESS_Write = 0x04, | 22 FX_STREAMACCESS_Write = 0x04, |
| 27 FX_STREAMACCESS_Truncate = 0x10, | 23 FX_STREAMACCESS_Truncate = 0x10, |
| 28 FX_STREAMACCESS_Append = 0x20, | 24 FX_STREAMACCESS_Append = 0x20, |
| 29 FX_STREAMACCESS_Create = 0x80, | 25 FX_STREAMACCESS_Create = 0x80, |
| 30 }; | 26 }; |
| 31 | 27 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual FX_BOOL SetLength(int32_t iLength) = 0; | 65 virtual FX_BOOL SetLength(int32_t iLength) = 0; |
| 70 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; | 66 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; |
| 71 virtual uint16_t GetCodePage() const = 0; | 67 virtual uint16_t GetCodePage() const = 0; |
| 72 virtual uint16_t SetCodePage(uint16_t wCodePage) = 0; | 68 virtual uint16_t SetCodePage(uint16_t wCodePage) = 0; |
| 73 virtual IFX_Stream* CreateSharedStream(uint32_t dwAccess, | 69 virtual IFX_Stream* CreateSharedStream(uint32_t dwAccess, |
| 74 int32_t iOffset, | 70 int32_t iOffset, |
| 75 int32_t iLength) = 0; | 71 int32_t iLength) = 0; |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_ | 74 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_ |
| OLD | NEW |