登录
首页 » C++ » SafeHandles句柄库

SafeHandles句柄库

于 2023-02-25 发布 文件大小:81.88 kB
0 104
下载积分: 2 下载次数: 1

代码说明:

翻译  maninwest@Codeforge  作者 Frankie-C@ CodeprojectSafehandles 是个通过使用强大安全的句柄管理数据结构的库。简介Safe handles 对于需要创建一个可以通过唯一值引用的私有内存结构的程序员来说,是向前迈进的一步,句柄模仿 OS 句柄行为。这个库旨在用于 API 程序设计,或者,适用于需要创建到数据块的安全引用的产品。 使用安全句柄具有以下优势: 安全数据引用,具有句柄的内部一致性检查真正数据的模糊处理保护数据防止数据损坏或不速之客的访问类型检查强制 (SHANDLE 类对虚值指针).句柄复制调试支持线程访问限制(如需要)基于线程的部分垃圾收集 SafeHandles 如何工作一个安全句柄是一个解决数据块问题的类似于 hashing 的方法,通常动态生成,避免了内存冲突和数据损坏。Safehandles 允许定义一个类型字段,它是编码在句柄内的,可以仅通过查看句柄区分数据类型。SafeHandles 创建了存储key/数据对的内存表格。表格的大小是用户定义的。SafeHandles 有 3 大部分:上面的布局是用于 32位计算机,具有最多 256 个句柄(8 位)、16 个类型 (4 位) 和 20位的 key.如果定义了 SAFEHANDLEMEMSAFE 符号,句柄会始终有 MSBit 组来解决无效内存。每个句柄新创建后,KEY 都会更改,如果达到 key 位最大计数则对它们进行包装,该功能使得句柄重用时更加安全。它允许进行句柄

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • socket
    详细介绍一下VC下的socket编程,并提供一个服务器客户端具体的实例。希望对您有所帮助 (Detailed introduction of VC socket programming, and provide a server client a specific example. Hope will be helpful to you)
    2012-05-09 18:53:35下载
    积分:1
  • PStechnology
    详细介绍了ps的基础技巧,让你从小白成为ps高手迈出了第一步。(Details of the ps of basic skills, so that you become ps from the white master the first step.)
    2013-12-28 20:40:28下载
    积分:1
  • TabView_TabCtr
    TabView 具有TabCtrl类似功能的视图类(Tabview class have the function like TabCtrl .)
    2013-11-30 10:34:05下载
    积分:1
  • booksale
        图书管理系统可以方便图书销售过程中的各个环节,有利于图书类企业流动资金加快,有利于企业成本降低,更有利于他们即使掌握各种销售与库存信息,然而现在大多数的系统设计时都没有考虑到将来的需要,设计接口不够灵活,以至于当前环境变化后不能很好的适应新环境,造成软件寿命的简短,要想实现软件寿命的延长,就必须在设计软件的全过程中灌入一种动态的有预见性的设计,只要这样,将来条件发生了改变,软件只需局部做一些调整就能够适应新环境。(Library management system can easily book all aspects of the sales process, help speed up books like corporate liquidity, help enterprises to reduce the cost, even if they are more conducive to master a variety of sales and inventory information, but now most of the system design are not take into account future needs, designing the interface is not flexible enough, so that the current environment after the change are not well adapt to the new environment, resulting in a short lifetime software, in order to achieve the software life extension, you must design software, the whole process of filling into a dynamic anticipatory design, as long as this in the future conditions changed, the software only partially able to make some adjustments to adapt to the new environment.)
    2013-06-26 20:16:35下载
    积分:1
  • RSA
    vc环境下RSA算法加解密功能 很強大,對RSA瞭解有所幫助(Vc environment RSA algorithm encryption function)
    2013-09-06 09:40:42下载
    积分:1
  • MPPT_INCC_CLA_C
    基于导纳增量法的最大功率点跟踪算法实现,基于DSP芯片TMS320F28035的运用,可直接使用。(Incremental conductance maximum power-point tracking algorithm implementation,for TMS320F20835.)
    2020-12-12 15:49:17下载
    积分:1
  • sr_api_csharp_sample
    smartRay激光器配套代码,便于进行二次开发,功能多多(SmrtRay laser matching code, easy to carry out secondary development, multi-function)
    2020-06-16 21:40:01下载
    积分:1
  • c24c02
    通过把开机次数记录在24C02中,并在数码管上显示出来, 124C02的写保护脚为低电平,即允许写(Boot number of records in the 24C02, and displayed on the digital 124C02 write-protect pin is low, that is allowed to write)
    2012-12-10 15:40:06下载
    积分:1
  • sprc675
    TI 官方光伏逆变器学习资料。一个完整的110V纯正弦波输出逆变器学习资料,软硬件都有。(TI Inverter learning resource.)
    2016-01-13 15:11:50下载
    积分:1
  • opencv调用USB摄像头完整代码
    这是一段应用于opencv2.0以上版本,调用USB摄像头的源码。
    2022-09-22 10:10:02下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载