Exemplo n.º 1
0
        /// <summary>
        /// Free any memory associated with the buffer. Must always be called last. Doesn't free the 'buffer' structure itself.
        /// </summary>
        /// <param name="buffer">WebPDecBuffer</param>
        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");
            }
        }
Exemplo n.º 2
0
 private static extern void WebPFreeDecBuffer_x64(ref WebPDecBuffer buffer);