private static void JpegLsReadHeaderThrowWhenError(byte[] source, int length, out JlsParameters info) { var result = Environment.Is64BitProcess ? SafeNativeMethods.JpegLsReadHeader64(source, length, out info, IntPtr.Zero) : SafeNativeMethods.JpegLsReadHeader(source, length, out info, IntPtr.Zero); HandleResult(result); }
private static void JpegLsReadHeaderThrowWhenError(byte[] source, int length, out JlsParameters info) { Contract.Requires(source != null); var errorMessage = new StringBuilder(256); JpegLSError result = Is64BitProcess ? SafeNativeMethods.JpegLsReadHeader64(source, length, out info, errorMessage) : SafeNativeMethods.JpegLsReadHeader(source, length, out info, errorMessage); HandleResult(result, errorMessage); }