| 63 | |
| 64 | template <typename BufferPtr> |
| 65 | std::string_view FromBinaryView(const BinaryViewType::c_type& v, |
| 66 | const BufferPtr* data_buffers) { |
| 67 | auto* data = v.is_inline() ? v.inlined.data.data() |
| 68 | : data_buffers[v.ref.buffer_index]->data() + v.ref.offset; |
| 69 | return {reinterpret_cast<const char*>(data), static_cast<size_t>(v.size())}; |
| 70 | } |
| 71 | template <typename BufferPtr> |
| 72 | std::string_view FromBinaryView(BinaryViewType::c_type&&, const BufferPtr*) = delete; |
| 73 |
no test coverage detected