BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.Helper.ArrayHelper Class Reference

Helper methods for arrays. More...

Static Public Member Functions

static float[] ByteArrayToFloatArray (byte[] bytes, int count=0)
 Converts a byte-array to a float-array.
 
static byte[] FloatArrayToByteArray (float[] array, int count=0)
 Converts a float-array to a byte-array.
 
static sbyte[] ByteArrayToSByteArray (byte[] bytes, int count=0)
 Converts a byte-array to a sbyte-array.
 
static byte[] SByteArrayToByteArray (sbyte[] sbytes, int count=0)
 Converts a sbyte-array to a byte-array.
 
static T[] GetColumn< T > (T[,] matrix, int columnNumber)
 Returns the column of a 2D-array as array.
 
static T[] GetRow< T > (T[,] matrix, int rowNumber)
 Returns the row of a 2D-array as array.
 

Detailed Description

Helper methods for arrays.

Member Function Documentation

◆ ByteArrayToFloatArray()

static float[] BogaNet.Helper.ArrayHelper.ByteArrayToFloatArray ( byte[] bytes,
int count = 0 )
static

Converts a byte-array to a float-array.

Parameters
bytesByte-array to convert
countNumber of bytes to convert (optional, default: 0 = all)
Returns
Converted float-array
Exceptions
ArgumentNullException

◆ ByteArrayToSByteArray()

static sbyte[] BogaNet.Helper.ArrayHelper.ByteArrayToSByteArray ( byte[] bytes,
int count = 0 )
static

Converts a byte-array to a sbyte-array.

Parameters
bytesByte-array to convert
countNumber of bytes to convert (optional, default: 0 = all)
Returns
Converted sbyte-array
Exceptions
ArgumentNullException

◆ FloatArrayToByteArray()

static byte[] BogaNet.Helper.ArrayHelper.FloatArrayToByteArray ( float[] array,
int count = 0 )
static

Converts a float-array to a byte-array.

Parameters
arrayFloat-array to convert
countNumber of floats to convert (optional, default: 0 = all)
Returns
Converted byte-array
Exceptions
ArgumentNullException

◆ GetColumn< T >()

static T[] BogaNet.Helper.ArrayHelper.GetColumn< T > ( T matrix[,],
int columnNumber )
static

Returns the column of a 2D-array as array.

Parameters
matrixInput as 2D-array
columnNumberDesired column of the 2D-array
Returns
Column of a 2D-array as array
Exceptions
ArgumentNullException

◆ GetRow< T >()

static T[] BogaNet.Helper.ArrayHelper.GetRow< T > ( T matrix[,],
int rowNumber )
static

Returns the row of a 2D-array as array.

Parameters
matrixInput as 2D-array
rowNumberDesired row of the 2D-array
Returns
Row of a 2D-array as array
Exceptions
ArgumentNullException

◆ SByteArrayToByteArray()

static byte[] BogaNet.Helper.ArrayHelper.SByteArrayToByteArray ( sbyte[] sbytes,
int count = 0 )
static

Converts a sbyte-array to a byte-array.

Parameters
sbytesSByte-array to convert
countNumber of sbytes to convert (optional, default: 0 = all)
Returns
Converted byte-array
Exceptions
ArgumentNullException

The documentation for this class was generated from the following file: