FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bindings for ZLib

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
Linker



Joined: 06 Nov 2006
Posts: 29
Location: Almaty, Kazakhstan

PostPosted: Mon Aug 20, 2007 11:04 am    Post subject: Bindings for ZLib Reply with quote

Hello.

Does anybody have zlib bindings?
I see ones in Phobos, but as I'm using tango, I'd have to port them, then maintain them, etc.

I wonder if anybody has already done that work?
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Mon Aug 20, 2007 12:12 pm    Post subject: Re: Bindings for ZLib Reply with quote

Linker wrote:
Hello.

Does anybody have zlib bindings?
I see ones in Phobos, but as I'm using tango, I'd have to port them, then maintain them, etc.

I wonder if anybody has already done that work?
Have you heard of Tangobos? It's supposed to be a port of Phobos for Tango. It looks like std.zlib is there.
Back to top
View user's profile Send private message AIM Address
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Mon Aug 20, 2007 5:55 pm    Post subject: Reply with quote

The binding from phobos should work in Tango without any modification. (I mean the C library, not the wrapper).
Back to top
View user's profile Send private message
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Tue Aug 21, 2007 4:19 pm    Post subject: Reply with quote

You can use the bindings from phobos;
You need to replace some function calls to the garbage collector.
For Tango, it's esay:
std.gc.hasNoPointers(destbuf.ptr);
-> tango.core.Memory.GC.removeRange(destbuf.ptr);

(^ I guess it's the right replacement)
Back to top
View user's profile Send private message
Linker



Joined: 06 Nov 2006
Posts: 29
Location: Almaty, Kazakhstan

PostPosted: Wed Aug 22, 2007 8:23 am    Post subject: Reply with quote

Thanks for your tips.
I guess I'll have to maintain my own bindings for zlib, as Tangobos doesn't seem like a good fit.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group