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

Method GetString

headers/openvr_api.cs:4188–4195  ·  view source on GitHub ↗
(string pchSection,string pchSettingsKey,System.Text.StringBuilder pchValue,uint unValueLen,ref EVRSettingsError peError)

Source from the content-addressed store, hash-verified

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);
4191 IntPtr pchSettingsKeyUtf8 = Utils.ToUtf8(pchSettingsKey);
4192 FnTable.GetString(pchSectionUtf8,pchSettingsKeyUtf8,pchValue,unValueLen,ref peError);
4193 Marshal.FreeHGlobal(pchSectionUtf8);
4194 Marshal.FreeHGlobal(pchSettingsKeyUtf8);
4195 }
4196 public void RemoveSection(string pchSection,ref EVRSettingsError peError)
4197 {
4198 IntPtr pchSectionUtf8 = Utils.ToUtf8(pchSection);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected