cl_strerror() private method

private cl_strerror ( int clerror ) : IntPtr
clerror int
return IntPtr
Exemplo n.º 1
0
        /// <summary>
        /// Returns the description string of a ClamAV error code.
        /// </summary>
        /// <param name="error">ClamAV error code.</param>
        /// <returns>Error description.</returns>
        internal static string ErrorString(int error)
        {
            IntPtr result = UnsafeNativeMethods.cl_strerror(error);

            return(UnmarshalString(result));
        }