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

Method GetFloat

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

Source from the content-addressed store, hash-verified

4177 return result;
4178 }
4179 public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError)
4180 {
4181 IntPtr pchSectionUtf8 = Utils.ToUtf8(pchSection);
4182 IntPtr pchSettingsKeyUtf8 = Utils.ToUtf8(pchSettingsKey);
4183 float result = FnTable.GetFloat(pchSectionUtf8,pchSettingsKeyUtf8,ref peError);
4184 Marshal.FreeHGlobal(pchSectionUtf8);
4185 Marshal.FreeHGlobal(pchSettingsKeyUtf8);
4186 return result;
4187 }
4188 public void GetString(string pchSection,string pchSettingsKey,System.Text.StringBuilder pchValue,uint unValueLen,ref EVRSettingsError peError)
4189 {
4190 IntPtr pchSectionUtf8 = Utils.ToUtf8(pchSection);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected