[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: CRC in lua
- From: "Khalid Manjoo" <kmanjoo@...>
- Date: Thu, 15 Jun 2006 15:50:11 +0200
Thanks, but I think this code is for unix, no ja ? I tried running it in lua
and received the error msg "attempt to call field 'calc' a nil value. Any
suggestions??
________________________________________
"If you look at what you have in life, you'll always have more. If you look
at what you don't have in life, you'll never have enough."
Khalid Manjoo
Sun Space & Information Systems (Pty) Ltd.
Stellenbosch, South Africa
www.sunspace.co.za
+27 21 880 8114 (tel)
+27 21 880 1703 (fax)
"There are no limitations to the mind except those that we acknowledge.
Whatever the mind can conceive and believe it can achieve. "
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of PA
Sent: 14 June 2006 05:06 PM
To: Lua list
Subject: Re: CRC in lua
On Jun 14, 2006, at 16:25, Imrahil wrote:
> hi everybuddy. does anyone know how to do a calculate a CRC fo a block
> of
> binary data using lua ??
Milano Carvalho posted an handy CRC32 module a while back:
http://lua-users.org/lists/lua-l/2005-02/msg00232.html
E.g.:
local crc = require( "crc" )
print( crc.calc( "abc" ) )
> 2608022668
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/