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

Method make

snap_drawing/src/snap_drawing/cpp/Utils/SVGAnimatedImage.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Valdi::Result<Ref<SVGAnimatedImage>> SVGAnimatedImage::make(const Valdi::Byte* data, size_t length) {
68 const Valdi::BytesView bytesView(nullptr, data, length);
69 auto dom = makeSVGDOM(bytesView);
70 if (!dom) {
71 return dom.moveError();
72 }
73 return Valdi::makeShared<SVGAnimatedImage>(dom.value());
74}
75
76VALDI_CLASS_IMPL(SVGAnimatedImage)
77

Callers

nothing calls this directly

Calls 2

makeSVGDOMFunction · 0.85
valueMethod · 0.65

Tested by

no test coverage detected