24 {
30
33
38 memcpy(
d.data(),
"helloz", 5);
39 v.set(std::string_view("hellooooo").substr(0, 5));
40
47
66
67 v.prepend(std::string_view("[["));
68 v.append(std::string_view("]]"));
70
71 v.insert(2, std::string_view("?!").substr(0, 1));
73
77
79
83
85 e.append(
"worldz", 5);
90
94
99
101 a.appendS32(0x7FFFFFFFL);
104 a.appendS32(0x80000001L);
107 a.appendS32(0x80000000L);
109
111 a.appendU32(0x7FFFFFFFUL);
114 a.appendU32(0x80000001UL);
117 a.appendU32(0xFFFFFFFFUL);
119
121 a.appendS64(0x7FFFFFFFFFFFFFFFLL, 0);
124 a.appendS64(0x8000000000000001LL, 0);
127 a.appendS64(0x8000000000000000LL, 0);
130 a.appendS64(0x0000000001000000LL, 15);
133 a.appendS64(0xFFFFFFFFFF000000LL, 15);
135
137 a.appendU64(0x7FFFFFFFFFFFFFFFULL, 0);
140 a.appendU64(0x8000000000000001ULL, 0);
143 a.appendU64(0xFFFFFFFFFFFFFFFFULL, 0);
146 a.appendU64(0x0000000001000000ULL, 15);
148
151 a.printf(
"%g", 3.14);
153 a.printf(
"hello %s",
"skia");
155
156 static const struct {
158 const char* fString;
160 { 0, "0" },
164 { INFINITY, "inf" },
165 { -INFINITY, "-inf" },
166 { NAN, "nan" },
167 { -NAN, "nan" },
168 #if defined(SK_BUILD_FOR_WIN) && (_MSC_VER < 1900)
169 { 3.4028234e38f, "3.4028235e+038" },
170 { -3.4028234e38f, "-3.4028235e+038" },
171 #else
172 { 3.4028234e38f, "3.4028235e+38" },
173 { -3.4028234e38f, "-3.4028235e+38" },
174 #endif
175 };
178 a.appendScalar(
gRec[
i].fValue);
180 if (!
a.equals(
gRec[
i].fString)) {
182 }
183 }
184
186}
static const struct @223 gRec[]
bool equals(SkDrawable *a, SkDrawable *b)
static constexpr int kSkStrAppendScalar_MaxSize
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
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