C# Class NBitcoin.BouncyCastle.Utilities.Arrays

General array utilities.
Datei anzeigen Open project: Nethereum/Nethereum

Public Methods

Method Description
Append ( byte a, byte b ) : byte[]
Append ( int a, int b ) : int[]
Append ( short a, short b ) : short[]
AreEqual ( bool a, bool b ) : bool
AreEqual ( byte a, byte b ) : bool

Are two arrays equal.

AreEqual ( char a, char b ) : bool
AreEqual ( int a, int b ) : bool
Clone ( byte data ) : byte[]
Clone ( byte data, byte existing ) : byte[]
Clone ( int data ) : int[]
Clone ( long data ) : long[]
Clone ( uint data ) : uint[]
Concatenate ( byte a, byte b ) : byte[]
Concatenate ( int a, int b ) : int[]
ConcatenateAll ( ) : byte[]
ConstantTimeAreEqual ( byte a, byte b ) : bool

A constant time equals comparison - does not terminate early if test will fail.

Contains ( byte a, byte n ) : bool
Contains ( int a, int n ) : bool
Contains ( short a, short n ) : bool
CopyOf ( NBitcoin.BouncyCastle.Math.BigInteger data, int newLength ) : NBitcoin.BouncyCastle.Math.BigInteger[]
CopyOf ( byte data, int newLength ) : byte[]
CopyOf ( char data, int newLength ) : char[]
CopyOf ( int data, int newLength ) : int[]
CopyOf ( long data, int newLength ) : long[]
CopyOfRange ( NBitcoin.BouncyCastle.Math.BigInteger data, int from, int to ) : NBitcoin.BouncyCastle.Math.BigInteger[]
CopyOfRange ( byte data, int from, int to ) : byte[]
CopyOfRange ( int data, int from, int to ) : int[]
CopyOfRange ( long data, int from, int to ) : long[]
Fill ( byte buf, byte b ) : void
GetHashCode ( byte data ) : int
GetHashCode ( byte data, int off, int len ) : int
GetHashCode ( int data ) : int
GetHashCode ( int data, int off, int len ) : int
Prepend ( byte a, byte b ) : byte[]
Prepend ( int a, int b ) : int[]
Prepend ( short a, short b ) : short[]
Reverse ( byte a ) : byte[]
Reverse ( int a ) : int[]
ToString ( object a ) : string

Private Methods

Method Description
AreEqual ( uint a, uint b ) : bool
AreSame ( byte a, byte b ) : bool
Clone ( ulong data ) : ulong[]
Clone ( ulong data, ulong existing ) : ulong[]
GetHashCode ( uint data ) : int
GetHashCode ( uint data, int off, int len ) : int
GetHashCode ( ulong data ) : int
GetHashCode ( ulong data, int off, int len ) : int
GetLength ( int from, int to ) : int
HaveSameContents ( bool a, bool b ) : bool
HaveSameContents ( byte a, byte b ) : bool
HaveSameContents ( char a, char b ) : bool
HaveSameContents ( int a, int b ) : bool
HaveSameContents ( uint a, uint b ) : bool

Method Details

Append() public static method

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

Append() public static method

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

Append() public static method

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

AreEqual() public static method

public static AreEqual ( bool a, bool b ) : bool
a bool
b bool
return bool

AreEqual() public static method

Are two arrays equal.
public static AreEqual ( byte a, byte b ) : bool
a byte Left side.
b byte Right side.
return bool

AreEqual() public static method

public static AreEqual ( char a, char b ) : bool
a char
b char
return bool

AreEqual() public static method

public static AreEqual ( int a, int b ) : bool
a int
b int
return bool

Clone() public static method

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

Clone() public static method

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

Clone() public static method

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

Clone() public static method

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

Clone() public static method

public static Clone ( uint data ) : uint[]
data uint
return uint[]

Concatenate() public static method

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

Concatenate() public static method

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

ConcatenateAll() public static method

public static ConcatenateAll ( ) : byte[]
return byte[]

ConstantTimeAreEqual() public static method

A constant time equals comparison - does not terminate early if test will fail.
public static ConstantTimeAreEqual ( byte a, byte b ) : bool
a byte first array
b byte second array
return bool

Contains() public static method

public static Contains ( byte a, byte n ) : bool
a byte
n byte
return bool

Contains() public static method

public static Contains ( int a, int n ) : bool
a int
n int
return bool

Contains() public static method

public static Contains ( short a, short n ) : bool
a short
n short
return bool

CopyOf() public static method

public static CopyOf ( NBitcoin.BouncyCastle.Math.BigInteger data, int newLength ) : NBitcoin.BouncyCastle.Math.BigInteger[]
data NBitcoin.BouncyCastle.Math.BigInteger
newLength int
return NBitcoin.BouncyCastle.Math.BigInteger[]

CopyOf() public static method

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

CopyOf() public static method

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

CopyOf() public static method

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

CopyOf() public static method

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

CopyOfRange() public static method

public static CopyOfRange ( NBitcoin.BouncyCastle.Math.BigInteger data, int from, int to ) : NBitcoin.BouncyCastle.Math.BigInteger[]
data NBitcoin.BouncyCastle.Math.BigInteger
from int
to int
return NBitcoin.BouncyCastle.Math.BigInteger[]

CopyOfRange() public static method

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

CopyOfRange() public static method

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

CopyOfRange() public static method

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

Fill() public static method

public static Fill ( byte buf, byte b ) : void
buf byte
b byte
return void

GetHashCode() public static method

public static GetHashCode ( byte data ) : int
data byte
return int

GetHashCode() public static method

public static GetHashCode ( byte data, int off, int len ) : int
data byte
off int
len int
return int

GetHashCode() public static method

public static GetHashCode ( int data ) : int
data int
return int

GetHashCode() public static method

public static GetHashCode ( int data, int off, int len ) : int
data int
off int
len int
return int

Prepend() public static method

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

Prepend() public static method

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

Prepend() public static method

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

Reverse() public static method

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

Reverse() public static method

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

ToString() public static method

public static ToString ( object a ) : string
a object
return string