diff --git a/src/Val.h b/src/Val.h index cdfc279d8d..70b044f9b6 100644 --- a/src/Val.h +++ b/src/Val.h @@ -1601,6 +1601,10 @@ public: const String* StringAt(unsigned int index) const { return StringValAt(index)->AsString(); } + // Only intended for low-level access by compiled code. + const auto& RawVec() const { return vector_val; } + auto& RawVec() { return vector_val; } + protected: /** * Returns the element at a given index or nullptr if it does not exist.