MCPcopy Create free account
hub / github.com/anjo76/angelscript / WriteUsedStringConstants

Method WriteUsedStringConstants

sdk/angelscript/source/as_restore.cpp:4150–4166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4148}
4149
4150void asCWriter::WriteUsedStringConstants()
4151{
4152 TimeIt("asCWriter::WriteUsedStringConstants");
4153
4154 asUINT count = (asUINT)usedStringConstants.GetLength();
4155 WriteEncodedInt64(count);
4156
4157 asCString str;
4158 for (asUINT i = 0; i < count; ++i)
4159 {
4160 asUINT length;
4161 engine->stringFactory->GetRawStringData(usedStringConstants[i], 0, &length);
4162 str.SetLength(length);
4163 engine->stringFactory->GetRawStringData(usedStringConstants[i], str.AddressOf(), &length);
4164 WriteString(&str);
4165 }
4166}
4167
4168void asCWriter::WriteUsedFunctions()
4169{

Callers

nothing calls this directly

Calls 4

GetLengthMethod · 0.45
GetRawStringDataMethod · 0.45
SetLengthMethod · 0.45
AddressOfMethod · 0.45

Tested by

no test coverage detected