点击或拖拽改变大小

SoftBasicIsTwoBytesEquel 方法 (Byte, Byte)

判断两个字节的指定部分是否相同
Determines whether the specified portion of a two-byte is the same

命名空间:  HslCommunication.BasicFramework
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static bool IsTwoBytesEquel(
	byte[] b1,
	byte[] b2
)

参数

b1
类型:SystemByte
第一个字节
b2
类型:SystemByte
第二个字节

返回值

类型:Boolean
返回是否相等
示例
IsTwoBytesEquel示例
byte[] b1 = new byte[] { 0x13, 0xA6, 0x15, 0x85, 0x5B, 0x05, 0x12, 0x36, 0xF2, 0x27 };
byte[] b2 = new byte[] { 0x13, 0xA6, 0x15, 0x85, 0x5B, 0x05, 0x12, 0x36, 0xF2, 0x27 };

Console.WriteLine( SoftBasic.IsTwoBytesEquel( b1, b2 ) );

// 输出 true
参见