MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / packCustom

Method packCustom

src/game/Flag.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312
313size_t FlagType::packCustom(NetMessage& netMsg) const {
314 const size_t s = netMsg.getSize();
315 pack(netMsg);
316 netMsg.packUInt8(uint8_t(flagQuality));
317 netMsg.packUInt8(uint8_t(flagShot));
318 netMsg.packStdString(flagName);
319 netMsg.packStdString(flagHelp);
320 return netMsg.getSize() - s;
321}
322
323
324void* FlagType::unpack(void* buf, FlagType* &type) {

Callers 2

bz_RegisterCustomFlagFunction · 0.80
executeMethod · 0.80

Calls 3

packUInt8Method · 0.80
packStdStringMethod · 0.80
getSizeMethod · 0.45

Tested by

no test coverage detected