开发者

PHP CRC32 length output

开发者 https://www.devze.com 2022-12-31 23:18 出处:网络
Is there anything that can make the returned length of the PHP CRC32 function to vary?开发者_如何学C

Is there anything that can make the returned length of the PHP CRC32 function to vary?

开发者_如何学C

Thanks!


No, by definition a CRC32 has 32-bits.

You can only vary its representation. For instance, while it can be represented with 4 8-bit bytes (and hence fits in a PHP int), you may wish to represent that number in base 10 in a string, and then it can have 10 characters (unsigned), since 2^32-1 is 4294967295.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号