Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
data.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
7#include "third_party/skia/include/core/SkData.h"
8
9SKWASM_EXPORT SkData* skData_create(size_t size) {
11 return SkData::MakeUninitialized(size).release();
12}
13
15 return data->writable_data();
16}
17
19 return data->data();
20}
21
23 return data->size();
24}
25
28 return data->unref();
29}
uint32_t live_data_count
SKWASM_EXPORT void * skData_getPointer(SkData *data)
Definition data.cc:14
SKWASM_EXPORT void skData_dispose(SkData *data)
Definition data.cc:26
SKWASM_EXPORT size_t skData_getSize(SkData *data)
Definition data.cc:22
SKWASM_EXPORT SkData * skData_create(size_t size)
Definition data.cc:9
SKWASM_EXPORT const void * skData_getConstPointer(SkData *data)
Definition data.cc:18
#define SKWASM_EXPORT
Definition export.h:10
std::shared_ptr< const fml::Mapping > data