Пример #1
0
        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);
        }
Пример #2
0
		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;
		}
Пример #3
0
        protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount)
        {
            const int BUFFER_LEN = 256;

            return(GetStringArray(entryPoint, GetCount, BUFFER_LEN));
        }
Пример #4
0
		protected string[] GetStringArray(GetArrayStringEntryPointDelegate entryPoint, GetInt32EntryPointDelegate GetCount)
		{
			const int BUFFER_LEN = 256;
			return GetStringArray(entryPoint, GetCount, BUFFER_LEN);
		}