MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / WriteIntVec

Method WriteIntVec

Source/Game/EntityDescription.cpp:1365–1371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365void EntityDescriptionField::WriteIntVec(const std::vector<int>& val) {
1366 int val_size = (int)val.size();
1367 memwrite(&val_size, sizeof(int), 1, data);
1368 if (val_size > 0) {
1369 memwrite(&val[0], sizeof(int), val_size, data);
1370 }
1371}
1372
1373void EntityDescriptionField::ReadItemConnectionDataVec(std::vector<ItemConnectionData>* item_connections) const {
1374 int index = 0;

Callers 3

LocalizeIDsFunction · 0.80
AddIntVecMethod · 0.80

Calls 2

memwriteFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected