@@ -48,13 +48,13 @@ public enum libdeflate_result
4848 /// A single decompressor is not safe to use by multiple threads concurrently.
4949 /// However, different threads may use different decompressors concurrently.
5050 ///</summary>
51- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
51+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
5252 public static extern libdeflate_decompressor libdeflate_alloc_decompressor ( ) ;
5353
5454 /// <summary>
5555 /// Like <see cref="libdeflate_alloc_decompressor"/> but allows specifying advanced options per-decompressor.
5656 /// </summary>
57- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
57+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
5858 public static extern libdeflate_decompressor libdeflate_alloc_decompressor_ex ( in libdeflate_options options ) ;
5959
6060 ///<summary>
@@ -89,7 +89,7 @@ public enum libdeflate_result
8989 /// not large enough but no other problems were encountered, or another
9090 /// nonzero result code if decompression failed for another reason.
9191 ///</summary>
92- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
92+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
9393 public static extern libdeflate_result libdeflate_deflate_decompress ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_out_nbytes_ret ) ;
9494
9595 ///<summary>
@@ -98,7 +98,7 @@ public enum libdeflate_result
9898 /// then the actual compressed size of the DEFLATE stream (aligned to the next
9999 /// byte boundary) is written to *actual_in_nbytes_ret.
100100 ///</summary>
101- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
101+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
102102 public static extern libdeflate_result libdeflate_deflate_decompress_ex ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_in_nbytes_ret , out size_t actual_out_nbytes_ret ) ;
103103
104104 ///<summary>
@@ -109,7 +109,7 @@ public enum libdeflate_result
109109 /// than 'in_nbytes'. If you need to know exactly where the zlib stream ended,
110110 /// use libdeflate_zlib_decompress_ex().
111111 ///</summary>
112- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
112+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
113113 public static extern libdeflate_result libdeflate_zlib_decompress ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_out_nbytes_ret ) ;
114114
115115 ///<summary>
@@ -120,7 +120,7 @@ public enum libdeflate_result
120120 /// than 'in_nbytes'. If you need to know exactly where the zlib stream ended,
121121 /// use libdeflate_zlib_decompress_ex().
122122 ///</summary>
123- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
123+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
124124 public static extern libdeflate_result libdeflate_zlib_decompress_ex ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_in_nbytes_ret , out size_t actual_out_nbytes_ret ) ;
125125
126126 ///<summary>
@@ -131,7 +131,7 @@ public enum libdeflate_result
131131 /// will be decompressed. Use libdeflate_gzip_decompress_ex() if you need
132132 /// multi-member support.
133133 ///</summary>
134- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
134+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
135135 public static extern libdeflate_result libdeflate_gzip_decompress ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_out_nbytes_ret ) ;
136136
137137 ///<summary>
@@ -141,14 +141,14 @@ public enum libdeflate_result
141141 /// buffer was decompressed), then the actual number of input bytes consumed is
142142 /// written to *actual_in_nbytes_ret.
143143 ///</summary>
144- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
144+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
145145 public static extern libdeflate_result libdeflate_gzip_decompress_ex ( libdeflate_decompressor decompressor , in byte @in , size_t in_nbytes , ref byte @out , size_t out_nbytes_avail , out size_t actual_in_nbytes_ret , out size_t actual_out_nbytes_ret ) ;
146146
147147 ///<summary>
148148 /// libdeflate_free_decompressor() frees a decompressor that was allocated with
149149 /// libdeflate_alloc_decompressor(). If a NULL pointer is passed in, no action
150150 /// is taken.
151151 ///</summary>
152- [ DllImport ( Constants . DllName , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
152+ [ DllImport ( Constants . DllName , CallingConvention = Constants . CallConv , ExactSpelling = true ) ]
153153 public static extern void libdeflate_free_decompressor ( libdeflate_decompressor decompressor ) ;
154154}
0 commit comments