MCPcopy Create free account
hub / github.com/apache/fory / get_string

Method get_string

cpp/fory/row/row.cc:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54std::string Getter::get_string(int i) const {
55 uint8_t *binary;
56 int size = get_binary(i, &binary);
57 if (size == -1) {
58 return std::string("");
59 } else {
60 return std::string(reinterpret_cast<char *>(binary),
61 static_cast<size_t>(size));
62 }
63}
64
65std::shared_ptr<Row> Getter::get_struct(int i,
66 StructTypePtr struct_type) const {

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
mainFunction · 0.80

Calls 1

stringFunction · 0.50

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64