public string GetPrivateString(string section, string key, string defaultResponse = "") { uint bufSize = 0; byte[] buf; do { bufSize += BuffSizeStep; buf = new byte[bufSize]; _native.IniReadString(_filePointer, section, key, defaultResponse, buf, bufSize); } while (buf[buf.Length - 2] != 0 && bufSize < BufSizeLimit); return(EncodingUtil.Win1251BytesToUtf8(buf)); }