点击或拖拽改变大小

SoftBasicIsByteTokenEquel 方法

判断两个数据的令牌是否相等
Determines whether the tokens of two data are equal

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

参数

head
类型:SystemByte
字节数据
token
类型:SystemGuid
GUID数据

返回值

类型:Boolean
返回是否相等
示例
IsByteTokenEquel示例
Guid guid = new Guid( "56b79cac-91e8-460f-95ce-72b39e19185e" );
byte[] b2 = new byte[32];
guid.ToByteArray( ).CopyTo( b2, 12 );

Console.WriteLine( SoftBasic.IsByteTokenEquel( b2, guid ) );

// 输出 true
参见