#include "include/private/base/SkContainers.h"
#include "include/private/base/SkAlign.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTo.h"
#include <algorithm>
#include <cstddef>
namespace {
constexpr size_t kMinBytes = …;
SkSpan<std::byte> complete_size(void* ptr, size_t size) { … }
}
SkSpan<std::byte> SkContainerAllocator::allocate(int capacity, double growthFactor) { … }
size_t SkContainerAllocator::roundUpCapacity(int64_t capacity) const { … }
size_t SkContainerAllocator::growthFactorCapacity(int capacity, double growthFactor) const { … }
SkSpan<std::byte> sk_allocate_canfail(size_t size) { … }
SkSpan<std::byte> sk_allocate_throw(size_t size) { … }
void sk_report_container_overflow_and_die() { … }