| 49 | } |
| 50 | |
| 51 | std::shared_ptr<Data> Data::MakeWithoutCopy(const void* data, size_t length) { |
| 52 | if (length == 0) { |
| 53 | return MakeEmpty(); |
| 54 | } |
| 55 | auto byteData = new Data(data, length, nullptr, nullptr); |
| 56 | return std::shared_ptr<Data>(byteData); |
| 57 | } |
| 58 | |
| 59 | void Data::DeleteProc(const void* data, void*) { |
| 60 | if (data != nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected