MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / GetInt32

Method GetInt32

headers/openvr_api.cs:4170–4178  ·  view source on GitHub ↗
(string pchSection,string pchSettingsKey,ref EVRSettingsError peError)

Source from the content-addressed store, hash-verified

4168 return result;
4169 }
4170 public int GetInt32(string pchSection,string pchSettingsKey,ref EVRSettingsError peError)
4171 {
4172 IntPtr pchSectionUtf8 = Utils.ToUtf8(pchSection);
4173 IntPtr pchSettingsKeyUtf8 = Utils.ToUtf8(pchSettingsKey);
4174 int result = FnTable.GetInt32(pchSectionUtf8,pchSettingsKeyUtf8,ref peError);
4175 Marshal.FreeHGlobal(pchSectionUtf8);
4176 Marshal.FreeHGlobal(pchSettingsKeyUtf8);
4177 return result;
4178 }
4179 public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError)
4180 {
4181 IntPtr pchSectionUtf8 = Utils.ToUtf8(pchSection);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected