什么是“原子"?数据类型? [英] What is the "atom" data type?

查看:56
本文介绍了什么是“原子"?数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在

I have encountered the ATOM type in the Win32api and also in the Acrobat API there is ASAtom.

据我所知,原子是哈希表(通常是字符串)的键,以实现快速查找并在应用程序之间共享数据.这是正确的,原子类型的词源是什么?

As far as I can tell, atoms are keys for a hash table usually of strings to enable fast look up and share data between applications. Is this correct and what is the etymology of the atom type?

编辑

经过大量搜索后,我注意到 Prolog 使用原子,因此必须有一些起源单词.似乎它曾经用来指代任何单个数据.

After some extensive searching I noticed Prolog uses atoms, so there must be some origin to this word. It seems it used to refer to any single piece of data.

推荐答案

ATOM是16位Windows句柄式原语.它的值对于用户模式是完全不透明的.它不是指针或索引.

ATOM is a 16-bit Windows handle-like primitive. It's value is completely opaque to user-mode. It is not a pointer or an index.

typedef unsigned short ATOM;

typedef unsigned short ATOM;

这篇关于什么是“原子"?数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆