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 _FX_STREAM_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_STREAM_H_ |
8 #define _FX_STREAM_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_STREAM_H_ |
9 | 9 |
10 #include "fx_memory.h" | 10 #include "fx_memory.h" |
11 #include "fx_string.h" | 11 #include "fx_string.h" |
12 | 12 |
13 void* FX_OpenFolder(FX_LPCSTR path); | 13 void* FX_OpenFolder(FX_LPCSTR path); |
14 void* FX_OpenFolder(FX_LPCWSTR path); | 14 void* FX_OpenFolder(FX_LPCWSTR path); |
15 FX_BOOL FX_GetNextFile(void* handle, CFX_ByteString& filename, FX_BOOL& bFolder)
; | 15 FX_BOOL FX_GetNextFile(void* handle, CFX_ByteString& filename, FX_BOOL& bFolder)
; |
16 FX_BOOL FX_GetNextFile(void* handle, CFX_WideString& filename, FX_BOOL& bFolder)
; | 16 FX_BOOL FX_GetNextFile(void* handle, CFX_WideString& filename, FX_BOOL& bFolder)
; |
17 void FX_CloseFolder(void* handle); | 17 void FX_CloseFolder(void* handle); |
18 FX_WCHAR FX_GetFolderSeparator(); | 18 FX_WCHAR FX_GetFolderSeparator(); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 virtual size_t ReadBlock(void* buffer, size_t size) = 0
; | 193 virtual size_t ReadBlock(void* buffer, size_t size) = 0
; |
194 | 194 |
195 virtual FX_BOOL ReadNextBlock(FX_BOOL bRestart = FALSE)
= 0; | 195 virtual FX_BOOL ReadNextBlock(FX_BOOL bRestart = FALSE)
= 0; |
196 | 196 |
197 virtual FX_LPCBYTE GetBlockBuffer() = 0; | 197 virtual FX_LPCBYTE GetBlockBuffer() = 0; |
198 | 198 |
199 virtual size_t GetBlockSize() = 0; | 199 virtual size_t GetBlockSize() = 0; |
200 | 200 |
201 virtual FX_FILESIZE GetBlockOffset() = 0; | 201 virtual FX_FILESIZE GetBlockOffset() = 0; |
202 }; | 202 }; |
203 #endif | 203 |
| 204 #endif // CORE_INCLUDE_FXCRT_FX_STREAM_H_ |
OLD | NEW |