| 123 | |
| 124 | template<typename VecValue, typename ConvertValue> |
| 125 | Value marshallVector(const std::vector<VecValue>& value, |
| 126 | const Ref<BridgeContext>& /*bridgeContext*/, |
| 127 | ConvertValue&& convertValue) { |
| 128 | auto out = ValueArray::make(value.size()); |
| 129 | |
| 130 | size_t index = 0; |
| 131 | |
| 132 | for (const auto& it : value) { |
| 133 | out->emplace(index, convertValue(it)); |
| 134 | index++; |
| 135 | } |
| 136 | |
| 137 | return Value(out); |
| 138 | } |
| 139 | |
| 140 | template<typename T> |
| 141 | Value marshallBridgeObject(const std::shared_ptr<T>& bridgeObject, const Ref<BridgeContext>& /*bridgeContext*/) { |