Table of Contents

Class Arrays

Namespace
Enterprises.Org.BouncyCastle.Utilities
Assembly
Enterprises.BouncyCastle.Crypto.dll
public abstract class Arrays
Inheritance
Arrays
Inherited Members

Constructors

Arrays()

protected Arrays()

Fields

EmptyBytes

public static readonly byte[] EmptyBytes

Field Value

byte[]

EmptyInts

public static readonly int[] EmptyInts

Field Value

int[]

Methods

Append(byte[], byte)

public static byte[] Append(byte[] a, byte b)

Parameters

a byte[]
b byte

Returns

byte[]

Append(short[], short)

public static short[] Append(short[] a, short b)

Parameters

a short[]
b short

Returns

short[]

Append(int[], int)

public static int[] Append(int[] a, int b)

Parameters

a int[]
b int

Returns

int[]

AreAllZeroes(byte[], int, int)

public static bool AreAllZeroes(byte[] buf, int off, int len)

Parameters

buf byte[]
off int
len int

Returns

bool

AreEqual(bool[], bool[])

public static bool AreEqual(bool[] a, bool[] b)

Parameters

a bool[]
b bool[]

Returns

bool

AreEqual(byte[], byte[])

public static bool AreEqual(byte[] a, byte[] b)

Parameters

a byte[]
b byte[]

Returns

bool

AreEqual(char[], char[])

public static bool AreEqual(char[] a, char[] b)

Parameters

a char[]
b char[]

Returns

bool

AreEqual(int[], int[])

public static bool AreEqual(int[] a, int[] b)

Parameters

a int[]
b int[]

Returns

bool

AreEqual(uint[], uint[])

[CLSCompliant(false)]
public static bool AreEqual(uint[] a, uint[] b)

Parameters

a uint[]
b uint[]

Returns

bool

AreSame(byte[], byte[])

[Obsolete("Use 'AreEqual' method instead")]
public static bool AreSame(byte[] a, byte[] b)

Parameters

a byte[]
b byte[]

Returns

bool

Clone(byte[])

public static byte[] Clone(byte[] data)

Parameters

data byte[]

Returns

byte[]

Clone(byte[], byte[])

public static byte[] Clone(byte[] data, byte[] existing)

Parameters

data byte[]
existing byte[]

Returns

byte[]

Clone(int[])

public static int[] Clone(int[] data)

Parameters

data int[]

Returns

int[]

Clone(long[])

public static long[] Clone(long[] data)

Parameters

data long[]

Returns

long[]

Clone(ulong[])

[CLSCompliant(false)]
public static ulong[] Clone(ulong[] data)

Parameters

data ulong[]

Returns

ulong[]

Clone(ulong[], ulong[])

[CLSCompliant(false)]
public static ulong[] Clone(ulong[] data, ulong[] existing)

Parameters

data ulong[]
existing ulong[]

Returns

ulong[]

Concatenate(byte[], byte[])

public static byte[] Concatenate(byte[] a, byte[] b)

Parameters

a byte[]
b byte[]

Returns

byte[]

Concatenate(int[], int[])

public static int[] Concatenate(int[] a, int[] b)

Parameters

a int[]
b int[]

Returns

int[]

ConcatenateAll(params byte[][])

public static byte[] ConcatenateAll(params byte[][] vs)

Parameters

vs byte[][]

Returns

byte[]

ConstantTimeAreEqual(byte[], byte[])

public static bool ConstantTimeAreEqual(byte[] a, byte[] b)

Parameters

a byte[]
b byte[]

Returns

bool

Contains(byte[], byte)

public static bool Contains(byte[] a, byte n)

Parameters

a byte[]
n byte

Returns

bool

Contains(short[], short)

public static bool Contains(short[] a, short n)

Parameters

a short[]
n short

Returns

bool

Contains(int[], int)

public static bool Contains(int[] a, int n)

Parameters

a int[]
n int

Returns

bool

CopyOf(BigInteger[], int)

public static BigInteger[] CopyOf(BigInteger[] data, int newLength)

Parameters

data BigInteger[]
newLength int

Returns

BigInteger[]

CopyOf(byte[], int)

public static byte[] CopyOf(byte[] data, int newLength)

Parameters

data byte[]
newLength int

Returns

byte[]

CopyOf(char[], int)

public static char[] CopyOf(char[] data, int newLength)

Parameters

data char[]
newLength int

Returns

char[]

CopyOf(int[], int)

public static int[] CopyOf(int[] data, int newLength)

Parameters

data int[]
newLength int

Returns

int[]

CopyOf(long[], int)

public static long[] CopyOf(long[] data, int newLength)

Parameters

data long[]
newLength int

Returns

long[]

CopyOfRange(BigInteger[], int, int)

public static BigInteger[] CopyOfRange(BigInteger[] data, int from, int to)

Parameters

data BigInteger[]
from int
to int

Returns

BigInteger[]

CopyOfRange(byte[], int, int)

public static byte[] CopyOfRange(byte[] data, int from, int to)

Parameters

data byte[]
from int
to int

Returns

byte[]

CopyOfRange(int[], int, int)

public static int[] CopyOfRange(int[] data, int from, int to)

Parameters

data int[]
from int
to int

Returns

int[]

CopyOfRange(long[], int, int)

public static long[] CopyOfRange(long[] data, int from, int to)

Parameters

data long[]
from int
to int

Returns

long[]

Fill(byte[], byte)

public static void Fill(byte[] buf, byte b)

Parameters

buf byte[]
b byte

Fill(byte[], int, int, byte)

public static void Fill(byte[] buf, int from, int to, byte b)

Parameters

buf byte[]
from int
to int
b byte

GetHashCode(byte[])

public static int GetHashCode(byte[] data)

Parameters

data byte[]

Returns

int

GetHashCode(byte[], int, int)

public static int GetHashCode(byte[] data, int off, int len)

Parameters

data byte[]
off int
len int

Returns

int

GetHashCode(int[])

public static int GetHashCode(int[] data)

Parameters

data int[]

Returns

int

GetHashCode(int[], int, int)

public static int GetHashCode(int[] data, int off, int len)

Parameters

data int[]
off int
len int

Returns

int

GetHashCode(uint[])

[CLSCompliant(false)]
public static int GetHashCode(uint[] data)

Parameters

data uint[]

Returns

int

GetHashCode(uint[], int, int)

[CLSCompliant(false)]
public static int GetHashCode(uint[] data, int off, int len)

Parameters

data uint[]
off int
len int

Returns

int

GetHashCode(ulong[])

[CLSCompliant(false)]
public static int GetHashCode(ulong[] data)

Parameters

data ulong[]

Returns

int

GetHashCode(ulong[], int, int)

[CLSCompliant(false)]
public static int GetHashCode(ulong[] data, int off, int len)

Parameters

data ulong[]
off int
len int

Returns

int

Prepend(byte[], byte)

public static byte[] Prepend(byte[] a, byte b)

Parameters

a byte[]
b byte

Returns

byte[]

Prepend(short[], short)

public static short[] Prepend(short[] a, short b)

Parameters

a short[]
b short

Returns

short[]

Prepend(int[], int)

public static int[] Prepend(int[] a, int b)

Parameters

a int[]
b int

Returns

int[]

Reverse(byte[])

public static byte[] Reverse(byte[] a)

Parameters

a byte[]

Returns

byte[]

Reverse(int[])

public static int[] Reverse(int[] a)

Parameters

a int[]

Returns

int[]

ToString(object[])

public static string ToString(object[] a)

Parameters

a object[]

Returns

string