Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ nullTerminate
Method
nullTerminate
src/OpenLoco/src/Localisation/StringBuffer.cpp:93–103 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
91
}
92
93
void StringBuffer::nullTerminate()
94
{
95
if (offset < maxLen)
96
{
97
buffer[offset] =
'\0'
;
98
}
99
else
100
{
101
buffer[maxLen - 1] =
'\0'
;
102
}
103
}
104
105
void StringBuffer::grow(size_t numChars)
106
{
Callers
1
formatString
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected