MCPcopy Create free account
hub / github.com/alibaba/GraphScope / initStringData

Function initStringData

analytical_engine/test/graphx_loader_test.cc:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55}
56void initStringData(std::vector<char>& result, std::vector<int32_t>& offset,
57 int cnt) {
58 offset.resize(cnt);
59 for (int i = 0; i < cnt; ++i) {
60 offset[i] = 4;
61 }
62 int ind = 0;
63 result.resize(4 * cnt);
64 for (int i = 0; i < cnt; ++i) {
65 for (int j = 0; j < 4; ++j) {
66 result[ind] = j;
67 ind += 1;
68 }
69 }
70}
71
72int main(int argc, char** argv) {
73 if (argc != 2) {

Callers 1

mainFunction · 0.85

Calls 1

resizeMethod · 0.65

Tested by

no test coverage detected