protected bool GetBool(GetInt32EntryPointDelegate entryPoint) { int ret = entryPoint(handle); CheckResult(ret); return ret == 1 ? true : false; }
protected bool GetBool(GetInt32EntryPointDelegate entryPoint) { int ret = entryPoint(handle); CheckResult(ret); return(ret == 1 ? true : false); }
protected int GetInt32(GetInt32EntryPointDelegate entryPoint) { int ret = entryPoint(handle); CheckResult(ret); return(ret); }
protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount, int bufferLen) { int count = GetCount(Handle); CheckResult(count); string[] Retorno = new string[count]; for (int i = 0; i < count; i++) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(Handle, buffer, bufferLen, i); CheckResult(ret); Retorno[i] = FromUTF8(buffer); } return(Retorno); }
protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount) { const int BUFFER_LEN = 256; return(GetStringArray(entryPoint, GetCount, BUFFER_LEN)); }
protected int GetInt32(GetInt32EntryPointDelegate entryPoint) { int ret = entryPoint(handle); CheckResult(ret); return ret; }
protected char GetChar(GetInt32EntryPointDelegate entryPoint) { int ret = entryPoint(Handle); CheckResult(ret); return (char)ret; }
protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount, int bufferLen) { int count = GetCount(Handle); CheckResult(count); string[] Retorno = new string[count]; for (int i = 0; i < count; i++) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(Handle, buffer, bufferLen, i); CheckResult(ret); Retorno[i] = FromUTF8(buffer); } return Retorno; }
protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount) { const int BUFFER_LEN = 256; return GetStringArray(entryPoint, GetCount, BUFFER_LEN); }