MayaFlux 0.4.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 730 of file TextureContainer.cpp.

731{
732 if (m_data.empty()) {
733 return false;
734 }
735
736 auto [ptr, bytes] = variant_bytes(m_data[0]);
737 return ptr && bytes > 0;
738}