Esempio n. 1
0
        public static void WebPFreeDecBuffer(ref WebPDecBuffer buffer)
        {
            switch (IntPtr.Size)
            {
            case 4:
                WebPFreeDecBuffer_x86(ref buffer);
                break;

            case 8:
                WebPFreeDecBuffer_x64(ref buffer);
                break;

            default:
                throw new InvalidOperationException("Invalid platform. Can not find proper function");
            }
        }
Esempio n. 2
0
 private static extern void WebPFreeDecBuffer_x64(ref WebPDecBuffer buffer);