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

Method GetRepeatedString

core/UserMessagePBHelpers.h:782–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780 }
781
782 inline bool GetRepeatedString(const char *pszFieldName, int index, char *out, int size)
783 {
784 GETCHECK_FIELD();
785 CHECK_FIELD_TYPE(STRING);
786 CHECK_FIELD_REPEATED();
787 CHECK_REPEATED_ELEMENT(index);
788
789 std::string scratch;
790 ke::SafeStrcpy(out, size, msg->GetReflection()->GetRepeatedStringReference(*msg, field, index, &scratch).c_str());
791
792 return true;
793 }
794
795 inline bool SetRepeatedString(const char *pszFieldName, int index, const char *value)
796 {

Callers 1

smn_PbReadStringFunction · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected