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

◆ slice() [2/2]

std::optional< CompositeSlice > MayaFlux::Kakshya::CompositeArray::slice ( size_t  start,
size_t  count 
) const

Borrow consecutive elements without copying.

Parameters
startFirst element index.
countNumber of elements, including zero.
Returns
Slice, or std::nullopt if the range exceeds the array.

Definition at line 12 of file CompositeAccess.cpp.

13{
14 const auto view = access();
15 return view ? view->slice(start, count) : std::nullopt;
16}
size_t count
std::optional< CompositeAccess > access() const
Validate and borrow the packed NDData stores and layout.

References access(), and count.

Referenced by MayaFlux::Kakshya::CompositeContainer::get_region_data(), MayaFlux::Kakshya::CompositeContainer::is_region_loaded(), set_blob(), MayaFlux::Kakshya::CompositeContainer::set_region_data(), set_text(), and MayaFlux::IO::CompositeWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: