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

Function ScriptFile_WriteUInt_Generic

sdk/add_on/scriptfile/scriptfile.cpp:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void ScriptFile_WriteUInt_Generic(asIScriptGeneric *gen)
121{
122 CScriptFile *file = (CScriptFile*)gen->GetObject();
123 asQWORD val = *(asQWORD*)gen->GetAddressOfArg(0);
124 asUINT bytes = *(asUINT*)gen->GetAddressOfArg(1);
125 *(int*)gen->GetAddressOfReturnLocation() = file->WriteUInt(val, bytes);
126}
127
128void ScriptFile_WriteFloat_Generic(asIScriptGeneric *gen)
129{

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
WriteUIntMethod · 0.80
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected