26 for (
int i = 0;
i <
a->count(); ++
i) {
28 const void* mema =
a->at(
i, &sizea);
29 const void* memb =
b->at(
i, &sizeb);
57 const int idata[] = { 1, 4, 9, 16, 25, 63 };
61 for (
int i = 0;
i < icount; ++
i) {
71 "",
"a",
"be",
"see",
"deigh",
"ef",
"ggggggggggggggggggggggggggg"
76 sizes[
i] = strlen(str[
i]) + 1;
89 const char*
s =
table->atStr(
i);
95 static const int gData[] = {
96 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
122 const int*
data = (
const int*)ptr;
132 const void*
data,
size_t len) {
138 const char str[] =
"Hello world";
139 size_t len = strlen(str);
159 const char s[] =
"abcdefghijklmnopqrstuvwxyz";
183 const char* str =
"We the people, in order to form a more perfect union.";
219 for (
int i = 0;
i <
N; ++
i) {
221 for (
int j = 0; j <
N; ++j) {
static void test_simpletable(skiatest::Reporter *reporter)
DEF_TEST(DataTable, reporter)
static void assert_data(skiatest::Reporter *reporter, const sk_sp< SkData > &ref, const void *data, size_t len)
static void assert_len(skiatest::Reporter *reporter, const sk_sp< SkData > &ref, size_t len)
static void test_vartable(skiatest::Reporter *reporter)
static void test_is_equal(skiatest::Reporter *reporter, const SkDataTable *a, const SkDataTable *b)
static void delete_int_proc(const void *ptr, void *context)
static void test_files(skiatest::Reporter *reporter)
static void test_datatable_is_empty(skiatest::Reporter *reporter, SkDataTable *table)
static void test_emptytable(skiatest::Reporter *reporter)
static void test_cstring(skiatest::Reporter *reporter)
static void test_globaltable(skiatest::Reporter *reporter)
static void * sk_malloc_throw(size_t size)
FILE * sk_fopen(const char path[], SkFILE_Flags)
bool equals(SkDrawable *a, SkDrawable *b)
#define REPORTER_ASSERT(r, cond,...)
static sk_sp< SkDataTable > MakeCopyArray(const void *array, size_t elemSize, int count)
const T * atT(int index, size_t *size=nullptr) const
static sk_sp< SkDataTable > MakeArrayProc(const void *array, size_t elemSize, int count, FreeProc proc, void *context)
static sk_sp< SkDataTable > MakeEmpty()
static sk_sp< SkDataTable > MakeCopyArrays(const void *const *ptrs, const size_t sizes[], int count)
size_t atSize(int index) const
static sk_sp< SkData > MakeWithoutCopy(const void *data, size_t length)
const uint8_t * bytes() const
static sk_sp< SkData > MakeFromMalloc(const void *data, size_t length)
static sk_sp< SkData > MakeUninitialized(size_t length)
bool equals(const SkData *other) const
const void * data() const
static sk_sp< SkData > MakeWithCString(const char cstr[])
static sk_sp< SkData > MakeFromFD(int fd)
static sk_sp< SkData > MakeWithProc(const void *ptr, size_t length, ReleaseProc proc, void *ctx)
static sk_sp< SkData > MakeFromFILE(FILE *f)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
static sk_sp< SkData > MakeSubset(const SkData *src, size_t offset, size_t length)
static sk_sp< SkData > MakeEmpty()
bool write(const void *buffer, size_t size) override
static SkString Join(const char *rootPath, const char *relativePath)
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
struct PathData * Data(SkPath *path)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
const myers::Point & get(const myers::Segment &)
std::shared_ptr< const fml::Mapping > data