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

Function tiledb_attribute_alloc

tiledb/api/c_api/attribute/attribute_api.cc:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace tiledb::api {
42
43int32_t tiledb_attribute_alloc(
44 const char* name,
45 tiledb_datatype_t type,
46 tiledb_attribute_handle_t** attr) {
47 ensure_output_pointer_is_valid(attr);
48 if (!name) {
49 throw CAPIStatusException("Argument \"name\" may not be NULL");
50 }
51 sm::ensure_datatype_is_valid(type);
52 *attr = tiledb_attribute_handle_t::make_handle(
53 name, static_cast<tiledb::sm::Datatype>(type));
54 return TILEDB_OK;
55}
56
57void tiledb_attribute_free(tiledb_attribute_handle_t** attr) {
58 ensure_output_pointer_is_valid(attr);

Callers 15

create_sparse_arrayMethod · 0.85
ordinary_attribute_1Method · 0.85
unit_capi_array.ccFile · 0.85
create_sparse_arrayMethod · 0.85
create_dense_arrayMethod · 0.85
ordinary_arrayMethod · 0.85
init_from_typeMethod · 0.85
create_arrayMethod · 0.85
create_arrayMethod · 0.85

Calls 2

ensure_datatype_is_validFunction · 0.85

Tested by 7

create_sparse_arrayMethod · 0.68
ordinary_attribute_1Method · 0.68
create_sparse_arrayMethod · 0.68
create_dense_arrayMethod · 0.68
ordinary_arrayMethod · 0.68
create_arrayMethod · 0.68