SoftBasicByteToHexString 方法 (Byte, Char) |
字节数据转化成16进制表示的字符串
Byte data into a string of 16 binary representations
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static string ByteToHexString(
byte[] InBytes,
char segment
)
Public Shared Function ByteToHexString (
InBytes As Byte(),
segment As Char
) As String
public:
static String^ ByteToHexString(
array<unsigned char>^ InBytes,
wchar_t segment
)
static member ByteToHexString :
InBytes : byte[] *
segment : char -> string
参数
- InBytes
- 类型:SystemByte
字节数组 - segment
- 类型:SystemChar
分割符
返回值
类型:
String返回的字符串
示例 byte[] b1 = new byte[] { 0x13, 0xA6, 0x15, 0x85, 0x5B, 0x05, 0x12, 0x36, 0xF2, 0x27 };
Console.WriteLine( SoftBasic.ByteToHexString( b1 ) );
参见