MCPcopy Create free account
hub / github.com/NVIDIA/DALI / GetSourceInfo

Method GetSourceInfo

dali/c_api_2/data_objects.h:712–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710 }
711
712 const char *GetSourceInfo(int sample) const & override {
713 ValidateSampleIdx(sample);
714 const char *info = tl_->GetMeta(sample).GetSourceInfo().c_str();
715 if (info && !*info)
716 return nullptr; // return empty string as NULL
717 return info;
718 }
719
720 void SetSourceInfo(int sample, const char *source_info) override {
721 ValidateSampleIdx(sample);

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
GetSourceInfoMethod · 0.45

Tested by

no test coverage detected