一款简单易用的基础网络通讯组件库。

BitAccessorT 结构

位访问器:用于对非托管类型 T 的位进行读取与设置。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public readonly ref struct BitAccessor<T>
where T : struct, new(), Object
Inheritance
Object    ValueType    BitAccessorT

类型参数

T
非托管类型。

构造函数

BitAccessorT 初始化 BitAccessorT 实例,允许对 T 类型的数据进行位访问。

属性

Length 获取位总长度(单位:位)。

方法

EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
Get 读取指定索引处的位值。
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
Set 将指定索引处的位设置为给定布尔值。
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map 将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。)
Map 将源对象映射到目标类型的实例。
(由 Mapper 定义。)
MapTTarget 将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见