MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / AddInt64OrUnsigned

Method AddInt64OrUnsigned

core/UserMessagePBHelpers.h:514–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512 }
513
514 inline bool AddInt64OrUnsigned(const char *pszFieldName, int64 value)
515 {
516 GETCHECK_FIELD();
517 CHECK_FIELD_TYPE2(INT64, UINT64);
518 CHECK_FIELD_REPEATED();
519
520 if (fieldType == protobuf::FieldDescriptor::CPPTYPE_UINT64)
521 {
522 msg->GetReflection()->AddUInt64(msg, field, (uint64)value);
523 }
524 else
525 {
526 msg->GetReflection()->AddInt64(msg, field, value);
527 }
528
529 return true;
530 }
531
532 inline bool GetBool(const char *pszFieldName, bool *out)
533 {

Callers 1

smn_PbAddInt64Function · 0.80

Calls 2

AddUInt64Method · 0.80
AddInt64Method · 0.80

Tested by

no test coverage detected