点击或拖拽改变大小

SoftBasicArrayRemoveDoubleT 方法

将一个数组的前后移除指定位数,返回新的一个数组
Removes a array before and after the specified number of bits, returning a new array

命名空间:  HslCommunication.BasicFramework
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static T[] ArrayRemoveDouble<T>(
	T[] value,
	int leftLength,
	int rightLength
)

参数

value
类型:T
数组
leftLength
类型:SystemInt32
前面的位数
rightLength
类型:SystemInt32
后面的位数

类型参数

T

[缺少 "M:HslCommunication.BasicFramework.SoftBasic.ArrayRemoveDouble``1(``0[],System.Int32,System.Int32)" 的 <typeparam name="T"/> 文档]

返回值

类型:T
新的数组
异常
异常条件
RankException
示例
ArrayRemoveDouble示例
byte[] b1 = new byte[] { 0x13, 0xA6, 0x15, 0x85, 0x5B, 0x05, 0x12 };

byte[] buffer = SoftBasic.ArrayRemoveDouble( b1, 1, 3 );

// buffer的值就是移除了第一个字节数据和最后两个字节数据的新值 new byte[] { 0xA6, 0x15, 0x85 };
// 其他的类型的数组,同理
参见