ToChar() public static method

public static ToChar ( byte value, int startIndex ) : char
value byte
startIndex int
return char
示例#1
0
 /// <summary>
 /// 返回指定的字节数组中以指定位置的字节转换来的值
 /// </summary>
 /// <param name="buffer">来源字节数组</param>
 /// <param name="offset">数据偏移</param>
 /// <returns>值</returns>
 public static char ToChar(this byte[] buffer, int offset)
 {
     return(BitConverter.ToChar(buffer, offset));
 }
示例#2
0
 public static char ToChar(ReadOnlySpan <byte> value) => Converter.ToChar(value);
示例#3
0
 public char GetChar()
 {
     return(BitConverter.ToChar(GetData(sizeof(char)), 0));
 }