Table of Contents

Class ArrayUtil

Namespace
iText.IO.Util
Assembly
itext.io.dll

This file is a helper class for internal usage only.

public sealed class ArrayUtil
Inheritance
ArrayUtil
Inherited Members

Remarks

This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in the future.

Methods

CloneArray(int[])

Clones int array.

public static int[] CloneArray(int[] src)

Parameters

src int[]

the int array

Returns

int[]

the int array

FillWithValue(int[], int)

Fills an array with the given value.

public static int[] FillWithValue(int[] a, int value)

Parameters

a int[]

the int array

value int

the number of a value

Returns

int[]

the int array

FillWithValue(float[], float)

Fills an array with the given value.

public static float[] FillWithValue(float[] a, float value)

Parameters

a float[]

the float array

value float

the number of a value

Returns

float[]

the float array

FillWithValue<T>(T[], T)

Fills an array with the given value.

public static void FillWithValue<T>(T[] a, T value)

Parameters

a T[]

the array

value T

the value of type

Type Parameters

T

the type of the implementation

HashCode(byte[])

Creates a hash of the given byte array.

public static int HashCode(byte[] a)

Parameters

a byte[]

the byte array

Returns

int

the byte array

IndexOf(object[], object)

Gets the index of object.

public static int IndexOf(object[] a, object key)

Parameters

a object[]

the object array

key object

the object key

Returns

int

the index of object

ShortenArray(byte[], int)

Shortens byte array.

public static byte[] ShortenArray(byte[] src, int length)

Parameters

src byte[]

the byte array

length int

the new length of bytes array

Returns

byte[]

the shortened byte array

ToIntArray(ICollection<int>)

Converts a collection to an int array.

public static int[] ToIntArray(ICollection<int> collection)

Parameters

collection ICollection<int>

the collection

Returns

int[]

the int array