#include "perfetto/protozero/scattered_heap_buffer.h"
#include <algorithm>
namespace protozero {
ScatteredHeapBuffer::Slice::Slice()
: … { … }
ScatteredHeapBuffer::Slice::Slice(size_t size)
: … { … }
ScatteredHeapBuffer::Slice::Slice(Slice&& slice) noexcept = default;
ScatteredHeapBuffer::Slice::~Slice() = default;
ScatteredHeapBuffer::Slice& ScatteredHeapBuffer::Slice::operator=(Slice&&) =
default;
void ScatteredHeapBuffer::Slice::Clear() { … }
ScatteredHeapBuffer::ScatteredHeapBuffer(size_t initial_slice_size_bytes,
size_t maximum_slice_size_bytes)
: … { … }
ScatteredHeapBuffer::~ScatteredHeapBuffer() = default;
protozero::ContiguousMemoryRange ScatteredHeapBuffer::GetNewBuffer() { … }
const std::vector<ScatteredHeapBuffer::Slice>&
ScatteredHeapBuffer::GetSlices() { … }
std::vector<uint8_t> ScatteredHeapBuffer::StitchSlices() { … }
std::vector<protozero::ContiguousMemoryRange> ScatteredHeapBuffer::GetRanges() { … }
void ScatteredHeapBuffer::AdjustUsedSizeOfCurrentSlice() { … }
size_t ScatteredHeapBuffer::GetTotalSize() { … }
void ScatteredHeapBuffer::Reset() { … }
}