首页 > 其他 > 详细

TSynDictionary

时间:2020-12-02 12:49:42      阅读:15      评论:0      收藏:0      [点我收藏+]

TSynDictionary

mormot.core.json.pas

/// thread-safe dictionary to store some values from associated keys
// - will maintain a dynamic array of values, associated with a hash table
// for the keys, so that setting or retrieving values would be O(1)
// - all process is protected by a TSynLocker, so will be thread-safe
// - TDynArray is a wrapper which do not store anything, whereas this class
// is able to store both keys and values, and provide convenient methods to
// access the stored data, including JSON serialization and binary storage
TSynDictionary = class(TSynLocked)

///线程安全的字典,用于存储关联键的一些值

// -将维护一个与散列表关联的动态值数组

//用于键,因此设置或检索值将是O(1)

// -所有进程都由TSynLocker保护,因此是线程安全的

// - TDynArray是一个包装器,它不存储任何东西,而这个类

//能够存储键和值,并提供方便的方法

//访问存储的数据,包括JSON序列化和二进制存储

TSynDictionary

原文:https://www.cnblogs.com/hnxxcxg/p/14072844.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!