| 39 | } |
| 40 | |
| 41 | inline BinaryViewType::c_type ToNonInlineBinaryView(const void* data, int32_t size, |
| 42 | int32_t buffer_index, |
| 43 | int32_t offset) { |
| 44 | // Large string: store index/offset. |
| 45 | BinaryViewType::c_type out; |
| 46 | out.ref = {size, {}, buffer_index, offset}; |
| 47 | memcpy(&out.ref.prefix, data, sizeof(out.ref.prefix)); |
| 48 | return out; |
| 49 | } |
| 50 | |
| 51 | inline BinaryViewType::c_type ToBinaryView(const void* data, int32_t size, |
| 52 | int32_t buffer_index, int32_t offset) { |
no outgoing calls
no test coverage detected