5#include "core/fxcrt/cfx_read_only_string_stream.h"
9#include "core/fxcrt/cfx_read_only_span_stream.h"
10#include "third_party/base/containers/span.h"
12CFX_ReadOnlyStringStream::CFX_ReadOnlyStringStream(ByteString data)
13 : data_(std::move(data)),
14 stream_(pdfium::MakeRetain<CFX_ReadOnlySpanStream>(data_.raw_span())) {}
19 return stream_->GetSize();
24 return stream_->ReadBlockAtOffset(buffer, offset);
FX_FILESIZE GetSize() override
~CFX_ReadOnlyStringStream() override
bool ReadBlockAtOffset(pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override