protected string GetString(GetStringEntryPointDelegate entryPoint, int len) { StringBuilder buffer = new StringBuilder(len); int ret = entryPoint(handle, buffer, len); CheckResult(ret); return(buffer.ToString()); }
protected string GetString(GetStringEntryPointDelegate entryPoint, int bufferLen) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(Handle, buffer, bufferLen); CheckResult(ret); return(FromUTF8(buffer)); }
protected string GetString(GetStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return(GetString(entryPoint, BUFFER_LEN)); }
protected string GetAbout(GetStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return(string.Format("ACBr: {0} ACBrFramework: {1}", GetString(entryPoint, BUFFER_LEN), this.GetType().Assembly.GetName().Version)); }
protected string GetString(GetStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return GetString(entryPoint, BUFFER_LEN); }
protected string GetString(GetStringEntryPointDelegate entryPoint, int bufferLen) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(handle, buffer, bufferLen); CheckResult(ret); return FromUTF8(buffer); }
protected string GetAbout(GetStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return string.Format("ACBr: {0} ACBrFramework: {1}", GetString(entryPoint, BUFFER_LEN), this.GetType().Assembly.GetName().Version); }