Extract a blob argument by index.
- Parameters
-
| index | Argument index (0-based). |
- Returns
- Raw bytes, or std::nullopt if out of range or wrong type.
Definition at line 158 of file InputBinding.cpp.
159{
161 return std::nullopt;
162 return std::visit([](const auto& v) -> std::optional<std::vector<uint8_t>> {
163 using T = std::decay_t<
decltype(v)>;
164 if constexpr (std::is_same_v<T, std::vector<uint8_t>>)
165 return v;
166 return std::nullopt;
167 },
169}