[Gambas-user] Information about instruction in Gambas v3

Benoît Minisini gambas at ...1...
Sun Jun 22 19:04:01 CEST 2014


Le 22/06/2014 18:03, Yahoo a écrit :
> Hello all,
>
> I'm currently trying to translate a Perl script in Gambas v3 so can
> someone say to me if this kind of instruction exist in Gambas.
>
> The instruction in Perl are:   'pack' and 'unpack'
>
> This is the documentation to have an idea:
>
> http://www.perlmonks.org/?node_id=224666
>
>
>
> These instructions are used to split a string into respectively
> variables like Byte, 16 bits integer, 32 bits integer, etc...
>
> It's just to know if exist an equivalent in Gambas or not to not
> re-invet the wheel.
>
> Thank you in advance
>
>
> [System]
> Gambas=3.5.90
> OperatingSystem=Linux
> Kernel=2.6.43.8-1.fc15.i686
> Architecture=x86
> Distribution=redhat Fedora release 14 (Laughlin)
> Desktop=GNOME
> Theme=QGtk
> Language=fr_FR.UTF-8
> Memory=3284M
> [Libraries]
> Cairo=libcairo.so.0.0.0
> Cairo=libcairo.so.2.11000.2
> Curl=libcurl.so.4.2.0
> DBus=libdbus-1.so.3.5.2
> GStreamer=libgstreamer-0.10.so.0.27.0
> GTK+=libgtk-x11-2.0.so.0.2200.0
> Poppler=libpoppler.so.7.0.0
> Qt4=libQtCore.so.4.7.4
> SDL=libSDL-1.2.so.0.11.3
>
>
> Olivier
>

You have to implement it by hand using:

1) "OPEN STRING" to get a read/write stream on a string.

2) "READ" and "WRITE" to read/write binary data.

Regards,

-- 
Benoît Minisini




More information about the User mailing list