MCPcopy Create free account
hub / github.com/alibaba/libgrape-lite / emplace_back

Method emplace_back

grape/utils/string_view_vector.h:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void emplace_back(const nonstd::string_view& val) {
43 size_t old_size = buffer_.size();
44 buffer_.resize(old_size + val.size());
45 memcpy(&buffer_[old_size], val.data(), val.size());
46 offsets_.push_back(buffer_.size());
47 }
48
49 size_t size() const {
50 assert(offsets_.size() > 0);

Callers 15

PutMethod · 0.80
PutMethod · 0.80
initMethod · 0.80
giveMethod · 0.80
InitThreadPoolMethod · 0.80
SegmentedPartitionerMethod · 0.80
deserialize_implMethod · 0.80
VertexMapBuilderMethod · 0.80
finishMethod · 0.80
finishMethod · 0.80
sync_responseMethod · 0.80
ConstructFragmentMethod · 0.80

Calls 4

sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
push_backMethod · 0.45

Tested by 3

initLocalInfoMethod · 0.64
verify_vertex_mapFunction · 0.64
verify_vertex_mapFunction · 0.64