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

Method setResourceContent

valdi/src/valdi/runtime/Resources/Bundle.cpp:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void Bundle::setResourceContent(const StringBox& path, const BundleResourceContent& resourceContent) {
236 std::lock_guard<std::recursive_mutex> guard(_mutex);
237 _resourceContentByPath[path] = resourceContent;
238}
239
240Result<Ref<CSSDocument>> Bundle::getCSSDocument(const StringBox& path, AttributeIds& attributeIds) {
241 std::lock_guard<std::recursive_mutex> guard(_mutex);

Callers 2

updateResourcesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected