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

Function ScriptFile_WriteInt_Generic

sdk/add_on/scriptfile/scriptfile.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void ScriptFile_WriteInt_Generic(asIScriptGeneric *gen)
113{
114 CScriptFile *file = (CScriptFile*)gen->GetObject();
115 asINT64 val = *(asINT64*)gen->GetAddressOfArg(0);
116 asUINT bytes = *(asUINT*)gen->GetAddressOfArg(1);
117 *(int*)gen->GetAddressOfReturnLocation() = file->WriteInt(val, bytes);
118}
119
120void ScriptFile_WriteUInt_Generic(asIScriptGeneric *gen)
121{

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
WriteIntMethod · 0.80
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected