diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-20 13:13:54 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-20 17:51:21 +0000 |
commit | 9a2f69f26c136ef4b53285edc28f4e494997f630 (patch) | |
tree | 2b1f2459ebc06366d7ee608d8413973f2f9ebe9b /core/fxcrt/fx_stream.cpp | |
parent | cfb1944e245e20fe2ce0e94feebc06526db34fa1 (diff) | |
download | pdfium-9a2f69f26c136ef4b53285edc28f4e494997f630.tar.xz |
Move fxcrt_stream code to fx_stream file
This Cl consolidates the stream code into fx_stream.
Change-Id: I22a250b4ca6e342592b81260d2a918ebab7f60a2
Reviewed-on: https://pdfium-review.googlesource.com/4373
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_stream.cpp')
-rw-r--r-- | core/fxcrt/fx_stream.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/fxcrt/fx_stream.cpp b/core/fxcrt/fx_stream.cpp index c60a546ddd..a0086f269e 100644 --- a/core/fxcrt/fx_stream.cpp +++ b/core/fxcrt/fx_stream.cpp @@ -305,3 +305,23 @@ CFX_RetainPtr<IFX_MemoryStream> IFX_MemoryStream::Create(uint8_t* pBuffer, CFX_RetainPtr<IFX_MemoryStream> IFX_MemoryStream::Create(bool bConsecutive) { return pdfium::MakeRetain<CFX_MemoryStream>(bConsecutive); } + +bool IFX_SeekableWriteStream::WriteBlock(const void* pData, size_t size) { + return WriteBlock(pData, GetSize(), size); +} + +bool IFX_SeekableReadStream::IsEOF() { + return false; +} + +FX_FILESIZE IFX_SeekableReadStream::GetPosition() { + return 0; +} + +size_t IFX_SeekableReadStream::ReadBlock(void* buffer, size_t size) { + return 0; +} + +bool IFX_SeekableStream::WriteBlock(const void* buffer, size_t size) { + return WriteBlock(buffer, GetSize(), size); +} |