| 2174 | } |
| 2175 | |
| 2176 | capi_return_t tiledb_handle_load_array_schema_request( |
| 2177 | tiledb_array_t* array, |
| 2178 | tiledb_serialization_type_t serialization_type, |
| 2179 | const tiledb_buffer_t* request, |
| 2180 | tiledb_buffer_t* response) { |
| 2181 | ensure_array_is_valid(array); |
| 2182 | ensure_buffer_is_valid(request); |
| 2183 | ensure_buffer_is_valid(response); |
| 2184 | |
| 2185 | auto load_schema_req = |
| 2186 | tiledb::sm::serialization::deserialize_load_array_schema_request( |
| 2187 | static_cast<tiledb::sm::SerializationType>(serialization_type), |
| 2188 | request->buffer()); |
| 2189 | |
| 2190 | if (load_schema_req.include_enumerations_latest_schema()) { |
| 2191 | array->load_all_enumerations(); |
| 2192 | } |
| 2193 | |
| 2194 | tiledb::sm::serialization::serialize_load_array_schema_response( |
| 2195 | *array->array(), |
| 2196 | static_cast<tiledb::sm::SerializationType>(serialization_type), |
| 2197 | response->buffer()); |
| 2198 | |
| 2199 | return TILEDB_OK; |
| 2200 | } |
| 2201 | |
| 2202 | capi_return_t tiledb_handle_load_enumerations_request( |
| 2203 | tiledb_array_t* array, |
no test coverage detected