Return a pointer to the inline data of a view. For inline views, this points to the entire data of the view. For other views, this points to the 4 byte prefix.
| 853 | /// For inline views, this points to the entire data of the view. |
| 854 | /// For other views, this points to the 4 byte prefix. |
| 855 | const uint8_t* inline_data() const& { |
| 856 | // Since `ref.prefix` has the same address as `inlined.data`, |
| 857 | // the branch will be trivially optimized out. |
| 858 | return is_inline() ? inlined.data.data() : ref.prefix.data(); |
| 859 | } |
| 860 | const uint8_t* inline_data() && = delete; |
| 861 | }; |
| 862 | static_assert(sizeof(c_type) == kSize); |