Flutter Engine
The Flutter Engine
Functions
SkData.cpp File Reference
#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>

Go to the source code of this file.

Functions

static void sk_free_releaseproc (const void *ptr, void *)
 
static void sk_mmap_releaseproc (const void *addr, void *ctx)
 
static void sk_dataref_releaseproc (const void *, void *context)
 

Function Documentation

◆ sk_dataref_releaseproc()

static void sk_dataref_releaseproc ( const void *  ,
void *  context 
)
static

Definition at line 168 of file SkData.cpp.

168 {
169 SkData* src = reinterpret_cast<SkData*>(context);
170 src->unref();
171}
Definition: SkData.h:25

◆ sk_free_releaseproc()

static void sk_free_releaseproc ( const void *  ptr,
void *   
)
static

Definition at line 103 of file SkData.cpp.

103 {
104 sk_free(const_cast<void*>(ptr));
105}
SK_API void sk_free(void *)

◆ sk_mmap_releaseproc()

static void sk_mmap_releaseproc ( const void *  addr,
void *  ctx 
)
static

Definition at line 133 of file SkData.cpp.

133 {
134 size_t length = reinterpret_cast<size_t>(ctx);
136}
void sk_fmunmap(const void *addr, size_t length)
size_t length