MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / tiledb_serialize_array_open

Function tiledb_serialize_array_open

tiledb/sm/c_api/tiledb.cc:1492–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490}
1491
1492int32_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
1520int32_t tiledb_deserialize_array_open(
1521 tiledb_ctx_t* ctx,

Callers 1

Calls 7

ensure_array_is_validFunction · 0.85
array_open_serializeFunction · 0.85
resourcesMethod · 0.80
getMethod · 0.45
arrayMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected