protected string GetString(GetComposedStringEntryPointDelegate entryPoint, int bufferLen) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(Handle, composedHandle, buffer, bufferLen); CheckResult(ret); return(FromUTF8(buffer)); }
protected string GetString(GetComposedStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return GetString(entryPoint, BUFFER_LEN); }
protected string GetString(GetComposedStringEntryPointDelegate entryPoint, int bufferLen) { StringBuilder buffer = new StringBuilder(bufferLen); int ret = entryPoint(Handle, composedHandle, buffer, bufferLen); CheckResult(ret); return FromUTF8(buffer); }
protected string GetString(GetComposedStringEntryPointDelegate entryPoint) { const int BUFFER_LEN = 256; return(GetString(entryPoint, BUFFER_LEN)); }