Mercurial > projects > dcrypt
comparison dcrypt/misc/checksums/Adler32.d @ 34:b1d9be1b3a34
Added additional overrides to Adler32 and CRC32 in dcrypt.misc.checksums in further hopes of D2 compatibility.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Thu, 14 May 2009 05:31:58 -0400 |
parents | 21847420b1ac |
children |
comparison
equal
deleted
inserted
replaced
33:b9f8aa42a547 | 34:b1d9be1b3a34 |
---|---|
34 } | 34 } |
35 | 35 |
36 return (s2 << 16) + s1; | 36 return (s2 << 16) + s1; |
37 } | 37 } |
38 | 38 |
39 /** Play nice with D2's idea of const. */ | |
40 version (D_Version2) | |
41 { | |
42 uint compute(string input) | |
43 { | |
44 return compute(cast(ubyte[])input); | |
45 } | |
46 } | |
47 | |
39 string name() | 48 string name() |
40 { | 49 { |
41 return "Adler32"; | 50 return "Adler32"; |
42 } | 51 } |
43 | 52 |