#include "include/core/SkData.h"
#include "include/core/SkStream.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkOnce.h"
#include "src/core/SkOSFile.h"
#include "src/core/SkStreamPriv.h"
#include <cstring>
#include <new>
SkData::SkData(const void* ptr, size_t size, ReleaseProc proc, void* context)
: … { … }
SkData::SkData(size_t size)
: … { … }
SkData::~SkData() { … }
bool SkData::equals(const SkData* other) const { … }
size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { … }
void SkData::operator delete(void* p) { … }
sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { … }
void SkData::NoopReleaseProc(const void*, void*) { … }
sk_sp<SkData> SkData::MakeEmpty() { … }
static void sk_free_releaseproc(const void* ptr, void*) { … }
sk_sp<SkData> SkData::MakeFromMalloc(const void* data, size_t length) { … }
sk_sp<SkData> SkData::MakeWithCopy(const void* src, size_t length) { … }
sk_sp<SkData> SkData::MakeUninitialized(size_t length) { … }
sk_sp<SkData> SkData::MakeZeroInitialized(size_t length) { … }
sk_sp<SkData> SkData::MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx) { … }
static void sk_mmap_releaseproc(const void* addr, void* ctx) { … }
sk_sp<SkData> SkData::MakeFromFILE(FILE* f) { … }
sk_sp<SkData> SkData::MakeFromFileName(const char path[]) { … }
sk_sp<SkData> SkData::MakeFromFD(int fd) { … }
static void sk_dataref_releaseproc(const void*, void* context) { … }
sk_sp<SkData> SkData::MakeSubset(const SkData* src, size_t offset, size_t length) { … }
sk_sp<SkData> SkData::MakeWithCString(const char cstr[]) { … }
sk_sp<SkData> SkData::MakeFromStream(SkStream* stream, size_t size) { … }