chromium/third_party/skia/src/core/SkData.cpp

/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#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)
    :{}

/** This constructor means we are inline with our fPtr's contents.
 *  Thus we set fPtr to point right after this.
 */
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() {}

// assumes fPtr was allocated via sk_malloc
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) {}

// assumes fPtr was allocated with sk_fmmap
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) {}

// assumes context is a SkData
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) {}