#include "minidump/minidump_memory_writer.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "base/auto_reset.h"
#include "base/check_op.h"
#include "base/logging.h"
#include "util/file/file_writer.h"
#include "util/numeric/safe_assignment.h"
namespace crashpad {
SnapshotMinidumpMemoryWriter::SnapshotMinidumpMemoryWriter(
const MemorySnapshot* memory_snapshot)
: … { … }
SnapshotMinidumpMemoryWriter::~SnapshotMinidumpMemoryWriter() { … }
bool SnapshotMinidumpMemoryWriter::MemorySnapshotDelegateRead(void* data,
size_t size) { … }
bool SnapshotMinidumpMemoryWriter::WriteObject(
FileWriterInterface* file_writer) { … }
const MINIDUMP_MEMORY_DESCRIPTOR*
SnapshotMinidumpMemoryWriter::MinidumpMemoryDescriptor() const { … }
void SnapshotMinidumpMemoryWriter::RegisterMemoryDescriptor(
MINIDUMP_MEMORY_DESCRIPTOR* memory_descriptor) { … }
bool SnapshotMinidumpMemoryWriter::Freeze() { … }
size_t SnapshotMinidumpMemoryWriter::Alignment() { … }
size_t SnapshotMinidumpMemoryWriter::SizeOfObject() { … }
bool SnapshotMinidumpMemoryWriter::WillWriteAtOffsetImpl(FileOffset offset) { … }
internal::MinidumpWritable::Phase SnapshotMinidumpMemoryWriter::WritePhase() { … }
MinidumpMemoryListWriter::MinidumpMemoryListWriter()
: … { … }
MinidumpMemoryListWriter::~MinidumpMemoryListWriter() { … }
void MinidumpMemoryListWriter::AddFromSnapshot(
const std::vector<const MemorySnapshot*>& memory_snapshots) { … }
void MinidumpMemoryListWriter::AddMemory(
std::unique_ptr<SnapshotMinidumpMemoryWriter> memory_writer) { … }
void MinidumpMemoryListWriter::AddNonOwnedMemory(
SnapshotMinidumpMemoryWriter* memory_writer) { … }
void MinidumpMemoryListWriter::CoalesceOwnedMemory() { … }
bool MinidumpMemoryListWriter::Freeze() { … }
size_t MinidumpMemoryListWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*> MinidumpMemoryListWriter::Children() { … }
bool MinidumpMemoryListWriter::WriteObject(FileWriterInterface* file_writer) { … }
MinidumpStreamType MinidumpMemoryListWriter::StreamType() const { … }
void MinidumpMemoryListWriter::DropRangesThatOverlapNonOwned() { … }
}