5#ifndef CORE_FXCRT_CFX_READ_ONLY_STRING_STREAM_H_
6#define CORE_FXCRT_CFX_READ_ONLY_STRING_STREAM_H_
8#include "core/fxcrt/bytestring.h"
9#include "core/fxcrt/fx_stream.h"
10#include "core/fxcrt/retain_ptr.h"
12class CFX_ReadOnlySpanStream;
24 explicit CFX_ReadOnlyStringStream(ByteString data);
27 const ByteString data_;
28 const RetainPtr<CFX_ReadOnlySpanStream> stream_;
FX_FILESIZE GetSize() override
~CFX_ReadOnlyStringStream() override
bool ReadBlockAtOffset(pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override
bool GetPagePos(uint32_t index, FX_FILESIZE *szPageStartPos, FX_FILESIZE *szPageLength, uint32_t *dwObjNum) const
static RetainPtr< IFX_SeekableReadStream > CreateFromFilename(const char *filename)
TEST_F(CPDF_CIDFontTest, BUG_920636)
#define CONSTRUCT_VIA_MAKE_RETAIN