Esempio n. 1
0
        public static string  BrotliDecoderErrorString(Int32 code)
        {
            IntPtr result = USE_X86
                ? Brolib32.BrotliDecoderErrorString(code)
                : Brolib64.BrotliDecoderErrorString(code);

            return(result != IntPtr.Zero
                ? Marshal.PtrToStringAnsi(result)
                : string.Empty);
        }
Esempio n. 2
0
        public static String BrotliDecoderErrorString(Int32 code)
        {
            IntPtr r = IntPtr.Zero;

            if (UseX86)
            {
                r = Brolib32.BrotliDecoderErrorString(code);
            }
            else
            {
                r = Brolib64.BrotliDecoderErrorString(code);
            }

            if (r != IntPtr.Zero)
            {
                return(Marshal.PtrToStringAnsi(r));
            }
            return(String.Empty);
        }