#include "core/fxcrt/cfx_memorystream.h"
#include <algorithm>
#include <utility>
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/stl_util.h"
CFX_MemoryStream::CFX_MemoryStream() = default;
CFX_MemoryStream::~CFX_MemoryStream() = default;
FX_FILESIZE CFX_MemoryStream::GetSize() { … }
bool CFX_MemoryStream::IsEOF() { … }
FX_FILESIZE CFX_MemoryStream::GetPosition() { … }
bool CFX_MemoryStream::Flush() { … }
pdfium::span<const uint8_t> CFX_MemoryStream::GetSpan() const { … }
bool CFX_MemoryStream::ReadBlockAtOffset(pdfium::span<uint8_t> buffer,
FX_FILESIZE offset) { … }
bool CFX_MemoryStream::WriteBlock(pdfium::span<const uint8_t> buffer) { … }