Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: xfa/fgas/crt/fgas_stream.h

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fgas/crt/fgas_codepage.cpp ('k') | xfa/fgas/crt/fgas_stream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual IFX_Stream* Retain() = 0; 51 virtual IFX_Stream* Retain() = 0;
52 virtual uint32_t GetAccessModes() const = 0; 52 virtual uint32_t GetAccessModes() const = 0;
53 virtual int32_t GetLength() const = 0; 53 virtual int32_t GetLength() const = 0;
54 virtual int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) = 0; 54 virtual int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) = 0;
55 virtual int32_t GetPosition() = 0; 55 virtual int32_t GetPosition() = 0;
56 virtual FX_BOOL IsEOF() const = 0; 56 virtual FX_BOOL IsEOF() const = 0;
57 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) = 0; 57 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) = 0;
58 virtual int32_t ReadString(FX_WCHAR* pStr, 58 virtual int32_t ReadString(FX_WCHAR* pStr,
59 int32_t iMaxLength, 59 int32_t iMaxLength,
60 FX_BOOL& bEOS, 60 FX_BOOL& bEOS,
61 int32_t const* pByteSize = NULL) = 0; 61 int32_t const* pByteSize = nullptr) = 0;
62 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) = 0; 62 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) = 0;
63 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) = 0; 63 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) = 0;
64 virtual void Flush() = 0; 64 virtual void Flush() = 0;
65 virtual FX_BOOL SetLength(int32_t iLength) = 0; 65 virtual FX_BOOL SetLength(int32_t iLength) = 0;
66 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; 66 virtual int32_t GetBOM(uint8_t bom[4]) const = 0;
67 virtual uint16_t GetCodePage() const = 0; 67 virtual uint16_t GetCodePage() const = 0;
68 virtual uint16_t SetCodePage(uint16_t wCodePage) = 0; 68 virtual uint16_t SetCodePage(uint16_t wCodePage) = 0;
69 virtual IFX_Stream* CreateSharedStream(uint32_t dwAccess, 69 virtual IFX_Stream* CreateSharedStream(uint32_t dwAccess,
70 int32_t iOffset, 70 int32_t iOffset,
71 int32_t iLength) = 0; 71 int32_t iLength) = 0;
72 }; 72 };
73 73
74 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_ 74 #endif // XFA_FGAS_CRT_FGAS_STREAM_H_
OLDNEW
« no previous file with comments | « xfa/fgas/crt/fgas_codepage.cpp ('k') | xfa/fgas/crt/fgas_stream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698