MCPcopy Create free account
hub / github.com/Tencent/tgfx / MakeEmpty

Method MakeEmpty

src/core/Data.cpp:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80std::shared_ptr<Data> Data::MakeEmpty() {
81 static auto emptyData = std::shared_ptr<Data>(new Data(nullptr, 0, nullptr, nullptr));
82 return emptyData;
83}
84
85Data::Data(const void* data, size_t length, ReleaseProc releaseProc, void* context)
86 : _data(data), _size(length), releaseProc(releaseProc), releaseContext(context) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected