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

Method str

tiledb/sm/cpp_api/capi_string.h:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 CAPIString operator=(const CAPIString&&) = delete;
79
80 std::string str() const {
81 const char* c;
82 size_t size;
83 auto status = tiledb_status(tiledb_string_view(string_, &c, &size));
84 if (status != TILEDB_OK) {
85 throw TileDBError(
86 "Could not view string; Error code: " + std::to_string(status));
87 }
88 return {c, size};
89 }
90
91 private:
92 /** The C API string handle. Invariant: must not be null. */

Calls 3

tiledb_statusFunction · 0.85
tiledb_string_viewFunction · 0.85
TileDBErrorClass · 0.85

Tested by 2

dumpMethod · 0.64
to_hexFunction · 0.64