拼接任意个泛型数组为一个总的泛型数组对象,采用深度拷贝实现。
Splicing any number of generic arrays into a total generic array object is implemented using deep copy.
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static T[] SpliceArray<T>(
params T[][] arrays
)
Public Shared Function SpliceArray(Of T) (
ParamArray arrays As T()()
) As T()
public:
generic<typename T>
static array<T>^ SpliceArray(
... array<array<T>^>^ arrays
)
static member SpliceArray :
arrays : 'T[][] -> 'T[]
参数
- arrays
- 类型:T
任意个长度的数组
类型参数
- T
- 数组的类型信息
返回值
类型:
T拼接之后的最终的结果对象
示例 byte[] b1 = new byte[] { 0x13, 0xA6, 0x15, 0x85 };
byte[] b2 = new byte[] { 0x5B, 0x05, 0x12 };
byte[] b3 = new byte[] { 0x5B, 0x15, 0x13 };
byte[] buffer = SoftBasic.SpliceArray<byte>( b1, b2, b3 );
参见