Class ArrayHelper
Contains utility methods related to array manipulation.
Inheritance
System.Object
ArrayHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Helpers
Assembly: Cosmos.System2.dll
Syntax
public class ArrayHelper
Methods
| Improve this Doc View SourceArraySplit(Byte[], Int32)
Splits the specified byte array into chunks of a specified size.
Declaration
public static byte[][] ArraySplit(byte[] buffer, int chunksize = 1000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | buffer | The byte array to split. |
| System.Int32 | chunksize | The size of each chunk. |
Returns
| Type | Description |
|---|---|
| System.Byte[][] |
Concat(Byte[], Byte[])
Contatenates two byte arrays.
Declaration
public static byte[] Concat(byte[] first, byte[] second)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | first | The first byte array. |
| System.Byte[] | second | The byte array to concatenate. |
Returns
| Type | Description |
|---|---|
| System.Byte[] |