public sealed class TouchSocketBitConverter
Public NotInheritable Class TouchSocketBitConverter
[<SealedAttribute>]
type TouchSocketBitConverter = class end
TouchSocketBitConverter | 初始化 TouchSocketBitConverter 类的新实例。 |
Default | 以默认小端,可通过DefaultEndianType重新指定默认端。 |
DefaultEndianType | 默认大小端切换。 |
EndianType | 获取字节序类型 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
GetBitConverter | 根据字节序类型获取相应的字节交换器 |
GetBytes(Boolean) | 将布尔值转换为指定端1字节 |
GetBytes(Boolean) | 将布尔数组转为字节数组。不足位补0。 |
GetBytes(Char) | 将指定字符转换为字节数组 |
GetBytes(Decimal) | 将指定的 decimal 值转换为一个包含该值的字节数组。 |
GetBytes(Double) | 将指定的双精度浮点数转换为对应字节端序的8字节数组。 |
GetBytes(Int16) | 将16位整数转换为指定字节序的字节数组。 |
GetBytes(Int32) | 将整数转换为指定字节序的4字节数组。 |
GetBytes(Int64) | 将长整型值转换为按指定端序排列的8字节数组。 |
GetBytes(Single) | 将浮点数转换为指定字节序的4字节数组。 |
GetBytes(UInt16) | 将ushort类型值转换为字节数组。 |
GetBytes(UInt32) | 将无符号整数转换为指定字节序的4字节数组。 |
GetBytes(UInt64) | 将指定的ulong类型值转换为8字节的字节数组。 此方法主要用于处理数据转换,确保数据格式符合特定需求。 |
GetBytes(Byte, Boolean) | 将布尔值转换为指定端1字节 |
GetBytes(Byte, Boolean) | 将布尔值数组转换为字节序列。 |
GetBytes(Byte, Char) | 将指定值转换为2字节,并存储到缓冲区中 |
GetBytes(Byte, Decimal) | 将指定的 decimal 值转换为一个包含该值的字节数组,并将结果存储在指定的缓冲区中。 |
GetBytes(Byte, Double) | 将指定的双精度浮点数转换为对应字节端序的8字节,并存储在指定的字节数组中。 |
GetBytes(Byte, Int16) | 将16位整数转换为指定字节序,并存储在指定的字节缓冲区中。 |
GetBytes(Byte, Int32) | 将整数转换为指定字节序,并存储在给定的字节数组中。 |
GetBytes(Byte, Int64) | 将长整型值转换为按指定端序排列的字节,并存储在缓冲区中。 |
GetBytes(Byte, Single) | 将浮点数转换为指定字节序的字节数组,并存储在指定缓冲区中。 |
GetBytes(Byte, UInt32) | 将无符号整数转换为指定字节序,并存储在给定的字节数组中。 |
GetBytes(Byte, UInt64) | 将ulong类型值转换为指定端的8字节 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
IsSameOfSet | 判断当前字节序是否与系统字节序相同 |
ToT | 将字节跨度转换为指定类型 |
ToBoolean | 转换为指定端模式的bool数据。 |
ToBooleans(Byte, Int32) | 将指定的字节,按位解析为bool数组。 |
ToBooleans(ReadOnlySpanByte, Int32) | 将字节的只读跨度转换为布尔值数组。 |
ToBooleans(Byte, Int32, Int32) | 将指定的字节,按位解析为bool数组。 |
ToChar | 转换为指定端模式的Char数据。 |
ToDecimal | 从指定偏移量处的字节数组中读取一个 decimal 值。 |
ToDouble | 将指定偏移量的字节数组转换为对应字节端序的双精度浮点数。 |
ToInt16 | 从指定字节数组和偏移量处读取两个字节,并根据设定的字节序模式转换为16位整数。 |
ToInt32 | 从字节数组中根据指定字节序转换为int。 |
ToInt64 | 从字节数组中读取按指定端序排列的long值。 |
ToSingle | 从字节数组中按指定字节序读取浮点数。 |
ToString | Returns a string that represents the current object. (继承自 Object。) |
ToUInt16 | 转换为指定端模式的2字节转换为UInt16数据。 |
ToUInt32 | 从指定字节序的字节数组中转换出无符号整数。 |
ToUInt64 | 转换为指定端模式的Ulong数据。 |
UnsafeToT | 不安全地将字节引用转换为指定类型 |
UnsafeWriteBytesT | 不安全地将值直接写入字节数组中。 |
WriteBytesT | 将指定值的字节表示形式写入到指定的字节跨度中。 |
BigEndian | 以大端 |
BigSwapEndian | 以交换大端 |
LittleEndian | 以小端 |
LittleSwapEndian | 以交换小端 |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |