Class CharArrayExtensions
Represents the char array extensions.
Namespace: Platform.Collections.Arrays
Assembly: Platform.Collections.dll
Syntax
public static class CharArrayExtensions : object
Methods
| Improve this Doc View SourceContentEqualTo(Char[], Int32, Int32, Char[], Int32)
Checks if all elements of two lists are equal.
Проверяет равны ли все элементы двух списков.
Declaration
public static bool ContentEqualTo(this char[] left, int leftOffset, int length, char[] right, int rightOffset)
Parameters
Type | Name | Description |
---|---|---|
Char[] | left | The first compared array. Первый массив для сравнения. |
Int32 | leftOffset | The offset from which reading of the specified number of elements in the first array starts. Смещение, с которого начинается чтение элементов в первом массиве. |
Int32 | length | The number of checked elements. Количество проверяемых элементов. |
Char[] | right | The second compared array. Второй массив для сравнения. |
Int32 | rightOffset | The offset from which reading of the specified number of elements in the second array starts. Смещение, с которого начинается чтение элементов в втором массиве. |
Returns
Type | Description |
---|---|
Boolean | true if the segments of the passed arrays are equal to each other otherwise false. true, если сегменты переданных массивов равны друг другу, иначе же false. |
Remarks
| Improve this Doc View SourceGenerateHashCode(Char[], Int32, Int32)
Generates a hash code for an array segment with the specified offset and length. The hash code is generated based on the values of the array elements included in the specified segment.
Генерирует хэш-код сегмента массива с указанным смещением и длиной. Хэш-код генерируется на основе значений элементов массива входящих в указанный сегмент.
Declaration
public static int GenerateHashCode(this char[] array, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
Char[] | array | The array to hash. Массив для хеширования. |
Int32 | offset | The offset from which reading of the specified number of elements in the array starts. Смещение, с которого начинается чтение указанного количества элементов в массиве. |
Int32 | length | The number of array elements used to calculate the hash. Количество элементов массива, на основе которых будет вычислен хэш. |
Returns
Type | Description |
---|---|
Int32 | The hash code of the segment in the array. Хэш-код сегмента в массиве. |