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