| 1490 | } |
| 1491 | |
| 1492 | int32_t tiledb_serialize_array_open( |
| 1493 | tiledb_ctx_t* ctx, |
| 1494 | const tiledb_array_t* array, |
| 1495 | tiledb_serialization_type_t serialize_type, |
| 1496 | int32_t, |
| 1497 | tiledb_buffer_t** buffer) { |
| 1498 | // Currently no different behaviour is required if array open is serialized by |
| 1499 | // the client or the Cloud server, so the variable is unused |
| 1500 | ensure_array_is_valid(array); |
| 1501 | |
| 1502 | auto buf = tiledb_buffer_handle_t::make_handle( |
| 1503 | ctx->resources().serialization_memory_tracker()); |
| 1504 | |
| 1505 | if (SAVE_ERROR_CATCH( |
| 1506 | ctx, |
| 1507 | tiledb::sm::serialization::array_open_serialize( |
| 1508 | *(array->array().get()), |
| 1509 | (tiledb::sm::SerializationType)serialize_type, |
| 1510 | buf->buffer()))) { |
| 1511 | tiledb_buffer_handle_t::break_handle(buf); |
| 1512 | return TILEDB_ERR; |
| 1513 | } |
| 1514 | |
| 1515 | *buffer = buf; |
| 1516 | |
| 1517 | return TILEDB_OK; |
| 1518 | } |
| 1519 | |
| 1520 | int32_t tiledb_deserialize_array_open( |
| 1521 | tiledb_ctx_t* ctx, |
no test coverage detected