MCPcopy Create free account
hub / github.com/Snapchat/Valdi / bytesFromString

Function bytesFromString

snap_drawing/test/src/SVGImage_tests.cpp:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace snap::drawing {
12
13static Valdi::BytesView bytesFromString(const char* value) {
14 return Valdi::BytesView(nullptr, reinterpret_cast<const Valdi::Byte*>(value), strlen(value));
15}
16
17static void expectBitmapIsRed(const Ref<Image>& image) {
18 TestBitmap bitmap(image->width(), image->height());

Callers 1

TESTFunction · 0.70

Calls 1

BytesViewClass · 0.50

Tested by

no test coverage detected