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

Function StringsBuffer_UNSAFE_Get

src/String.c:849–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849cc_string StringsBuffer_UNSAFE_Get(struct StringsBuffer* buffer, int i) {
850 cc_uint32 flags, offset, len;
851 if (i < 0 || i >= buffer->count) Process_Abort("Tried to get String past StringsBuffer end");
852
853 flags = buffer->flagsBuffer[i];
854 offset = StringsBuffer_GetOffset(flags);
855 len = StringsBuffer_GetLength(flags);
856 return String_Init(&buffer->textBuffer[offset], len, len);
857}
858
859void StringsBuffer_UNSAFE_GetRaw(struct StringsBuffer* buffer, int i, cc_string* dst) {
860 cc_uint32 flags = buffer->flagsBuffer[i];

Callers 13

ChatInputWidget_UpKeyFunction · 0.85
ChatInputWidget_DownKeyFunction · 0.85
ListScreen_UNSAFE_GetFunction · 0.85
ListScreen_SelectFunction · 0.85
EditHotkeyScreen_InitFunction · 0.85
LogInputUsageFunction · 0.85
HandleHotkeyDownFunction · 0.85
HasChangedFunction · 0.85
Options_ReloadFunction · 0.85
Music_RunLoopFunction · 0.85
Http_SetRequestHeadersFunction · 0.85
StringsBuffer_QuickSortFunction · 0.85

Calls 1

String_InitFunction · 0.85

Tested by

no test coverage detected