Renci.SshNet.Security.Org.BouncyCastle.Utilities.Arrays
General array utilities.
namespace Renci.SshNet.Security.Org.BouncyCastle.Utilities
{
internal abstract class Arrays
{
public static readonly byte[] EmptyBytes;
public static readonly int[] EmptyInts;
public static bool AreAllZeroes(byte[] buf, int off, int len);
public static bool AreEqual(bool[] a, bool[] b);
public static bool AreEqual(char[] a, char[] b);
public static bool AreEqual(byte[] a, byte[] b);
public static bool AreSame(byte[] a, byte[] b);
public static bool ConstantTimeAreEqual(byte[] a, byte[] b);
public static bool AreEqual(int[] a, int[] b);
public static bool AreEqual(uint[] a, uint[] b);
public static string ToString(object[] a);
public static int GetHashCode(byte[] data);
public static int GetHashCode(byte[] data, int off, int len);
public static int GetHashCode(int[] data);
public static int GetHashCode(int[] data, int off, int len);
public static int GetHashCode(uint[] data);
public static int GetHashCode(uint[] data, int off, int len);
public static int GetHashCode(ulong[] data);
public static int GetHashCode(ulong[] data, int off, int len);
public static byte[] Clone(byte[] data);
public static byte[] Clone(byte[] data, byte[] existing);
public static int[] Clone(int[] data);
public static long[] Clone(long[] data);
public static ulong[] Clone(ulong[] data);
public static ulong[] Clone(ulong[] data, ulong[] existing);
public static bool Contains(byte[] a, byte n);
public static bool Contains(short[] a, short n);
public static bool Contains(int[] a, int n);
public static void Fill(byte[] buf, byte b);
public static void Fill(byte[] buf, int from, int to, byte b);
public static byte[] CopyOf(byte[] data, int newLength);
public static char[] CopyOf(char[] data, int newLength);
public static int[] CopyOf(int[] data, int newLength);
public static long[] CopyOf(long[] data, int newLength);
public static BigInteger[] CopyOf(BigInteger[] data, int newLength);
public static byte[] CopyOfRange(byte[] data, int from, int to);
public static int[] CopyOfRange(int[] data, int from, int to);
public static long[] CopyOfRange(long[] data, int from, int to);
public static BigInteger[] CopyOfRange(BigInteger[] data, int from, int to);
public static byte[] Append(byte[] a, byte b);
public static short[] Append(short[] a, short b);
public static int[] Append(int[] a, int b);
public static byte[] Concatenate(byte[] a, byte[] b);
public static byte[] ConcatenateAll(params byte[][] vs);
public static int[] Concatenate(int[] a, int[] b);
public static byte[] Prepend(byte[] a, byte b);
public static short[] Prepend(short[] a, short b);
public static int[] Prepend(int[] a, int b);
public static byte[] Reverse(byte[] a);
public static int[] Reverse(int[] a);
protected Arrays();
}
}