| 415 | } |
| 416 | |
| 417 | Ref<ValueArray> Value::getArrayRef() const noexcept { |
| 418 | if (getType() == ValueType::Array) { |
| 419 | return getUnsafeTypedRefPointer<ValueArray>(); |
| 420 | } |
| 421 | |
| 422 | return nullptr; |
| 423 | } |
| 424 | |
| 425 | Ref<ValueMap> Value::getMapRef() const noexcept { |
| 426 | if (getType() == ValueType::Map) { |