Good job, Oldes!
By the way, I noticed that your ui32-to-int and int-to-ui32
functions might be optimizable.
It looks like you do not use them in any tight loop in
this code, but if you ever do, they might be speeded up
a lot by making your struct once and keeping it in the
context, eg:
context [
s: make struct! [i [integer!]] none
ui32-to-int: func [i /local s][
change third s i
return s/i
]
]
Did you consider this way ?
Anton.
> Hello rebolist,
>
> just want to let you know that today I did something I wanted to do
> a long time ago:
>
> zlib compressor/decompressor using zlib.dll (version 1.2.3)
>
> Rebol has compress/decompress functions (which are basically zlib as
> well, but is using some old version or has some unknown problem so
> it's not able to decompress some of ziped files.
>
> I must say it again: Rebol's dll and binary support is not easy and
> intuitive at all. It was really hard to find out how to get pointer
> to integer value (if I can talk about unsigned long integers like
> about Rebol's integers) and the way I found doesn't look nice at all.
>
> Never mind. I got what I needed to work.
>
> You can download it with compiled zlib.dll for windows here:
>
> http://box.lebeda.ws/~hmm/rebol/zlib_latest.rip
>
> and you will need this Ladislavs' script as well:
>
> http://box.lebeda.ws/~hmm/rebol/memory-tools_latest.rip
>
> cheers,
> Oldes
>
> PS: The files are RIP archives so you must first run them to decompress
> included files
> PPS: It would be possible to use more functions from this dll, but I
> needed just the decompress function. For more info look at
> http://www.zlib.org - the official zlib web page.
>
> --
> Best regards,
> rebOldes -----------------[ http://oldes.multimedia.cz/ ]
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.