summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorBianShaoLei <bianshaolei@gmail.com>2010-07-19 01:33:26 -0700
committerEvan Nemerson <evan@coeus-group.com>2010-07-19 01:33:26 -0700
commitcdca545391fa75dc93750a4135f5d26af69e2f5c (patch)
treef84a85e58f3223478ba4238ce7125799b1848d65 /vapi
parent859d63dedffa54c64be5354d21dd494c07205ffa (diff)
downloadvala-cdca545391fa75dc93750a4135f5d26af69e2f5c.tar.gz
zlib: Fix dest length argument for Utility.compress and uncompress.
Fixes bug 623088.
Diffstat (limited to 'vapi')
-rw-r--r--vapi/zlib.vapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapi/zlib.vapi b/vapi/zlib.vapi
index d27555b0e..1dd5ac688 100644
--- a/vapi/zlib.vapi
+++ b/vapi/zlib.vapi
@@ -144,10 +144,10 @@ namespace ZLib {
[CCode (lower_case_cprefix = "")]
namespace Utility {
[CCode (cname = "compress2")]
- public static int compress ([CCode (array_length_type = "gulong")] uchar[] dest, [CCode (array_length_type = "gulong")] uchar[] source, int level = Level.DEFAULT_COMPRESSION);
+ public static int compress ([CCode (array_length = false)] uchar[] dest, ref ulong dest_length, [CCode (array_length_type = "gulong")] uchar[] source, int level = Level.DEFAULT_COMPRESSION);
[CCode (cname = "compressBound")]
public static int compress_bound (ulong sourceLen);
- public static int uncompress ([CCode (array_length_type = "gulong")] uchar[] dest, [CCode (array_length_type = "gulong")] uchar[] source);
+ public static int uncompress ([CCode (array_length = false)] uchar[] dest, ref ulong dest_length, [CCode (array_length_type = "gulong")] uchar[] source);
public static ulong adler32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
public static ulong crc32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
}