#include "core/fpdfapi/parser/cpdf_object_stream.h"
#include <utility>
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_parser.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fpdfapi/parser/cpdf_syntax_parser.h"
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include "core/fxcrt/cfx_read_only_span_stream.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/ptr_util.h"
namespace {
bool IsObjectStream(const CPDF_Stream* stream) { … }
}
std::unique_ptr<CPDF_ObjectStream> CPDF_ObjectStream::Create(
RetainPtr<const CPDF_Stream> stream) { … }
CPDF_ObjectStream::CPDF_ObjectStream(RetainPtr<const CPDF_Stream> obj_stream)
: … { … }
CPDF_ObjectStream::~CPDF_ObjectStream() = default;
RetainPtr<CPDF_Object> CPDF_ObjectStream::ParseObject(
CPDF_IndirectObjectHolder* pObjList,
uint32_t obj_number,
uint32_t archive_obj_index) const { … }
void CPDF_ObjectStream::Init(const CPDF_Stream* stream) { … }
RetainPtr<CPDF_Object> CPDF_ObjectStream::ParseObjectAtOffset(
CPDF_IndirectObjectHolder* pObjList,
uint32_t object_offset) const { … }