Class Arrays
  
  
  
    - Namespace
- Enterprises.Org.BouncyCastle.Utilities
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
 
  
  
  
    public abstract class Arrays
   
  
    - Inheritance
- 
      
      Arrays 
    - Inherited Members
- 
    
    
    
    
    
    
    
  
Constructors
  
  
  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
  
    - abyte[]
- bbyte
Returns
  
    - byte[]
  Append(short[], short)
  
  
  
  
  
    public static short[] Append(short[] a, short b)
   
  Parameters
  
    - ashort[]
- bshort
Returns
  
    - short[]
  Append(int[], int)
  
  
  
  
  
    public static int[] Append(int[] a, int b)
   
  Parameters
  
    - aint[]
- bint
Returns
  
    - int[]
  AreAllZeroes(byte[], int, int)
  
  
  
  
  
    public static bool AreAllZeroes(byte[] buf, int off, int len)
   
  Parameters
  
    - bufbyte[]
- offint
- lenint
Returns
  
    - bool
  AreEqual(bool[], bool[])
  
  
  
  
  
    public static bool AreEqual(bool[] a, bool[] b)
   
  Parameters
  
    - abool[]
- bbool[]
Returns
  
    - bool
  AreEqual(byte[], byte[])
  
  
  
  
  
    public static bool AreEqual(byte[] a, byte[] b)
   
  Parameters
  
    - abyte[]
- bbyte[]
Returns
  
    - bool
  AreEqual(char[], char[])
  
  
  
  
  
    public static bool AreEqual(char[] a, char[] b)
   
  Parameters
  
    - achar[]
- bchar[]
Returns
  
    - bool
  AreEqual(int[], int[])
  
  
  
  
  
    public static bool AreEqual(int[] a, int[] b)
   
  Parameters
  
    - aint[]
- bint[]
Returns
  
    - bool
  AreEqual(uint[], uint[])
  
  
  
  
  
    [CLSCompliant(false)]
public static bool AreEqual(uint[] a, uint[] b)
   
  Parameters
  
    - auint[]
- buint[]
Returns
  
    - bool
  AreSame(byte[], byte[])
  
  
  
  
  
    [Obsolete("Use 'AreEqual' method instead")]
public static bool AreSame(byte[] a, byte[] b)
   
  Parameters
  
    - abyte[]
- bbyte[]
Returns
  
    - bool
  Clone(byte[])
  
  
  
  
  
    public static byte[] Clone(byte[] data)
   
  Parameters
  
    - databyte[]
Returns
  
    - byte[]
  Clone(byte[], byte[])
  
  
  
  
  
    public static byte[] Clone(byte[] data, byte[] existing)
   
  Parameters
  
    - databyte[]
- existingbyte[]
Returns
  
    - byte[]
  Clone(int[])
  
  
  
  
  
    public static int[] Clone(int[] data)
   
  Parameters
  
    - dataint[]
Returns
  
    - int[]
  Clone(long[])
  
  
  
  
  
    public static long[] Clone(long[] data)
   
  Parameters
  
    - datalong[]
Returns
  
    - long[]
  Clone(ulong[])
  
  
  
  
  
    [CLSCompliant(false)]
public static ulong[] Clone(ulong[] data)
   
  Parameters
  
    - dataulong[]
Returns
  
    - ulong[]
  Clone(ulong[], ulong[])
  
  
  
  
  
    [CLSCompliant(false)]
public static ulong[] Clone(ulong[] data, ulong[] existing)
   
  Parameters
  
    - dataulong[]
- existingulong[]
Returns
  
    - ulong[]
  Concatenate(byte[], byte[])
  
  
  
  
  
    public static byte[] Concatenate(byte[] a, byte[] b)
   
  Parameters
  
    - abyte[]
- bbyte[]
Returns
  
    - byte[]
  Concatenate(int[], int[])
  
  
  
  
  
    public static int[] Concatenate(int[] a, int[] b)
   
  Parameters
  
    - aint[]
- bint[]
Returns
  
    - int[]
  ConcatenateAll(params byte[][])
  
  
  
  
  
    public static byte[] ConcatenateAll(params byte[][] vs)
   
  Parameters
  
    - vsbyte[][]
Returns
  
    - byte[]
  ConstantTimeAreEqual(byte[], byte[])
  
  
  
  
  
    public static bool ConstantTimeAreEqual(byte[] a, byte[] b)
   
  Parameters
  
    - abyte[]
- bbyte[]
Returns
  
    - bool
  Contains(byte[], byte)
  
  
  
  
  
    public static bool Contains(byte[] a, byte n)
   
  Parameters
  
    - abyte[]
- nbyte
Returns
  
    - bool
  Contains(short[], short)
  
  
  
  
  
    public static bool Contains(short[] a, short n)
   
  Parameters
  
    - ashort[]
- nshort
Returns
  
    - bool
  Contains(int[], int)
  
  
  
  
  
    public static bool Contains(int[] a, int n)
   
  Parameters
  
    - aint[]
- nint
Returns
  
    - bool
  CopyOf(BigInteger[], int)
  
  
  
  
  
    public static BigInteger[] CopyOf(BigInteger[] data, int newLength)
   
  Parameters
  
    - dataBigInteger[]
- newLengthint
Returns
  
    - BigInteger[]
  CopyOf(byte[], int)
  
  
  
  
  
    public static byte[] CopyOf(byte[] data, int newLength)
   
  Parameters
  
    - databyte[]
- newLengthint
Returns
  
    - byte[]
  CopyOf(char[], int)
  
  
  
  
  
    public static char[] CopyOf(char[] data, int newLength)
   
  Parameters
  
    - datachar[]
- newLengthint
Returns
  
    - char[]
  CopyOf(int[], int)
  
  
  
  
  
    public static int[] CopyOf(int[] data, int newLength)
   
  Parameters
  
    - dataint[]
- newLengthint
Returns
  
    - int[]
  CopyOf(long[], int)
  
  
  
  
  
    public static long[] CopyOf(long[] data, int newLength)
   
  Parameters
  
    - datalong[]
- newLengthint
Returns
  
    - long[]
  CopyOfRange(BigInteger[], int, int)
  
  
  
  
  
    public static BigInteger[] CopyOfRange(BigInteger[] data, int from, int to)
   
  Parameters
  
    - dataBigInteger[]
- fromint
- toint
Returns
  
    - BigInteger[]
  CopyOfRange(byte[], int, int)
  
  
  
  
  
    public static byte[] CopyOfRange(byte[] data, int from, int to)
   
  Parameters
  
    - databyte[]
- fromint
- toint
Returns
  
    - byte[]
  CopyOfRange(int[], int, int)
  
  
  
  
  
    public static int[] CopyOfRange(int[] data, int from, int to)
   
  Parameters
  
    - dataint[]
- fromint
- toint
Returns
  
    - int[]
  CopyOfRange(long[], int, int)
  
  
  
  
  
    public static long[] CopyOfRange(long[] data, int from, int to)
   
  Parameters
  
    - datalong[]
- fromint
- toint
Returns
  
    - long[]
  Fill(byte[], byte)
  
  
  
  
  
    public static void Fill(byte[] buf, byte b)
   
  Parameters
  
    - bufbyte[]
- bbyte
  Fill(byte[], int, int, byte)
  
  
  
  
  
    public static void Fill(byte[] buf, int from, int to, byte b)
   
  Parameters
  
    - bufbyte[]
- fromint
- toint
- bbyte
  GetHashCode(byte[])
  
  
  
  
  
    public static int GetHashCode(byte[] data)
   
  Parameters
  
    - databyte[]
Returns
  
    - int
  GetHashCode(byte[], int, int)
  
  
  
  
  
    public static int GetHashCode(byte[] data, int off, int len)
   
  Parameters
  
    - databyte[]
- offint
- lenint
Returns
  
    - int
  GetHashCode(int[])
  
  
  
  
  
    public static int GetHashCode(int[] data)
   
  Parameters
  
    - dataint[]
Returns
  
    - int
  GetHashCode(int[], int, int)
  
  
  
  
  
    public static int GetHashCode(int[] data, int off, int len)
   
  Parameters
  
    - dataint[]
- offint
- lenint
Returns
  
    - int
  GetHashCode(uint[])
  
  
  
  
  
    [CLSCompliant(false)]
public static int GetHashCode(uint[] data)
   
  Parameters
  
    - datauint[]
Returns
  
    - int
  GetHashCode(uint[], int, int)
  
  
  
  
  
    [CLSCompliant(false)]
public static int GetHashCode(uint[] data, int off, int len)
   
  Parameters
  
    - datauint[]
- offint
- lenint
Returns
  
    - int
  GetHashCode(ulong[])
  
  
  
  
  
    [CLSCompliant(false)]
public static int GetHashCode(ulong[] data)
   
  Parameters
  
    - dataulong[]
Returns
  
    - int
  GetHashCode(ulong[], int, int)
  
  
  
  
  
    [CLSCompliant(false)]
public static int GetHashCode(ulong[] data, int off, int len)
   
  Parameters
  
    - dataulong[]
- offint
- lenint
Returns
  
    - int
  Prepend(byte[], byte)
  
  
  
  
  
    public static byte[] Prepend(byte[] a, byte b)
   
  Parameters
  
    - abyte[]
- bbyte
Returns
  
    - byte[]
  Prepend(short[], short)
  
  
  
  
  
    public static short[] Prepend(short[] a, short b)
   
  Parameters
  
    - ashort[]
- bshort
Returns
  
    - short[]
  Prepend(int[], int)
  
  
  
  
  
    public static int[] Prepend(int[] a, int b)
   
  Parameters
  
    - aint[]
- bint
Returns
  
    - int[]
  Reverse(byte[])
  
  
  
  
  
    public static byte[] Reverse(byte[] a)
   
  Parameters
  
    - abyte[]
Returns
  
    - byte[]
  Reverse(int[])
  
  
  
  
  
    public static int[] Reverse(int[] a)
   
  Parameters
  
    - aint[]
Returns
  
    - int[]
  ToString(object[])
  
  
  
  
  
    public static string ToString(object[] a)
   
  Parameters
  
    - aobject[]
Returns
  
    - string