MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / UNSAFE_GetString

Function UNSAFE_GetString

src/Protocol.c:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144#endif
145
146static cc_string UNSAFE_GetString(cc_uint8* data) {
147 int i, length = 0;
148 for (i = STRING_SIZE - 1; i >= 0; i--) {
149 char code = data[i];
150 if (code == '\0' || code == ' ') continue;
151 length = i + 1; break;
152 }
153 return String_Init((char*)data, length, STRING_SIZE);
154}
155
156static float GetFloat(cc_uint8* data) {
157 union IntAndFloat raw;

Callers 12

Classic_KickFunction · 0.85
CPE_ExtInfoFunction · 0.85
CPE_ExtEntryFunction · 0.85
CPE_SetTextHotkeyFunction · 0.85
CPE_ExtAddPlayerNameFunction · 0.85
CPE_ExtAddEntityFunction · 0.85
CPE_ChangeModelFunction · 0.85
CPE_EnvSetMapAppearanceFunction · 0.85
CPE_ExtAddEntity2Function · 0.85
CPE_SetMapEnvUrlFunction · 0.85
CPE_DefineModelFunction · 0.85

Calls 1

String_InitFunction · 0.85

Tested by

no test coverage detected