SoftBasicSpliceTwoByteArray 方法 |
拼接2个字节数组成一个数组
Splicing 2 bytes to to an array
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:9.6.2.0 (9.6.2.0)
语法public static byte[] SpliceTwoByteArray(
byte[] bytes1,
byte[] bytes2
)
Public Shared Function SpliceTwoByteArray (
bytes1 As Byte(),
bytes2 As Byte()
) As Byte()
public:
static array<unsigned char>^ SpliceTwoByteArray(
array<unsigned char>^ bytes1,
array<unsigned char>^ bytes2
)
static member SpliceTwoByteArray :
bytes1 : byte[] *
bytes2 : byte[] -> byte[]
参数
- bytes1
- 类型:SystemByte
数组一 - bytes2
- 类型:SystemByte
数组二
返回值
类型:
Byte拼接后的数组
示例byte[] b1 = new byte[] { 0x13, 0xA6, 0x15, 0x85 };
byte[] b2 = new byte[] { 0x5B, 0x05, 0x12 };
byte[] buffer = SoftBasic.SpliceTwoByteArray( b1, b2 );
参见