Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRC32 returns negative on big files
Message
De
01/08/2011 09:47:16
 
 
À
01/08/2011 08:46:38
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01519635
Message ID:
01519806
Vues:
19
>Right. Concerning the negative/positive matter. It's the structure of the bits that matters, not whether you look at it as signed or unsigned
>
>In Foxpro
>
>	xx = repl(chr(0xff), 4)
>	crc32 = sys(2007, m.xx,-1,1)
>	
>	?crc32  && 4294967295
>	?vartype(crc32)  && C
>	
>	?int(val(crc32))  && 4294967295
>	
>	&& Force a signed 32 bit integer
>	?bitor(int(val(crc32)), 0) && -1
>
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform