小编Hal*_*Hal的帖子

简单的字符串散列函数

我正在尝试将字符串散列为一个整数,以便将其放入数组中.但是我不太了解散列函数,这就是为什么我当前的方法只是将字符的所有ASCII数字加在一起并将其调整为数组大小.

有没有简单的更快/更好的方法?

delphi string hash

13
推荐指数
2
解决办法
2万
查看次数

Common data types: How much bytes are they?

I'd like to know how much bytes a

  • 32-bit integer

  • ASCII character (char in C++?)

  • Pointer (4 bytes?)

  • Short

  • Float

Takes up in Delphi, and if it is generally the same in most languages

另外,上面提到的数据类型是否具有恒定的大小?我的意思是整数0,4,123和32231都是相同的大小?

memory delphi

5
推荐指数
2
解决办法
4400
查看次数

标签 统计

delphi ×2

hash ×1

memory ×1

string ×1