| 367 | } |
| 368 | |
| 369 | explicit array(std::string value) |
| 370 | : dtype_(dtype::string) |
| 371 | , mode_(mode_t::scalar_inplace) |
| 372 | , has_data_(true) |
| 373 | { |
| 374 | const auto size = value.size(); |
| 375 | ASSERT(size <= s_array_bytes); |
| 376 | data_.raw[0] = static_cast<char>(static_cast<uint8_t>(size)); |
| 377 | std::memcpy(&data_.raw[1], &value[0], size); |
| 378 | } |
| 379 | |
| 380 | public: |
| 381 | array() = default; |
nothing calls this directly
no test coverage detected