MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ has_data()

bool MayaFlux::Kakshya::TextureContainer::has_data ( ) const
overridevirtual

Check if the container currently holds any data.

Returns
true if data is present, false otherwise

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 794 of file TextureContainer.cpp.

795{
796 if (m_data.empty()) {
797 return false;
798 }
799
800 auto [ptr, bytes] = variant_bytes(m_data[0]);
801 return ptr && bytes > 0;
802}
const uint8_t * ptr
std::pair< const uint8_t *, size_t > variant_bytes(const DataVariant &v)
Get a pointer to the raw bytes of a DataVariant and its size.
Definition DataUtils.cpp:95

References ptr, and MayaFlux::Kakshya::variant_bytes().

+ Here is the call graph for this function: