C# Class BCNet.Utils

ファイルを表示 Open project: GarageGames/Bitcoin

Public Methods

Method Description
ByteArrayToHexString ( byte barr ) : string
ByteSwapIntegers ( byte buffer ) : void
Byteswap ( short value ) : short
Byteswap ( uint value ) : uint
Byteswap ( ushort value ) : ushort
DecodeBase58String ( string encoded ) : byte[]
DecodeBase58StringChecked ( string encoded ) : byte[]
GenerateHash ( byte data ) : byte[]
HashCompare ( byte hashA, byte hashB ) : bool
HexStringToByteArray ( string hex ) : byte[]
HexStringToUInt ( string hex ) : uint
ReadString ( BinaryReader br, int len ) : string
ReadVarInt ( BinaryReader br ) : ulong
UIntToHexString ( uint val ) : string
UnixTime ( ) : System.UInt64
WriteVarInt ( BinaryWriter bw, ulong val ) : void

Private Methods

Method Description
GetHexVal ( char hex ) : int

Method Details

ByteArrayToHexString() public static method

public static ByteArrayToHexString ( byte barr ) : string
barr byte
return string

ByteSwapIntegers() public static method

public static ByteSwapIntegers ( byte buffer ) : void
buffer byte
return void

Byteswap() public static method

public static Byteswap ( short value ) : short
value short
return short

Byteswap() public static method

public static Byteswap ( uint value ) : uint
value uint
return uint

Byteswap() public static method

public static Byteswap ( ushort value ) : ushort
value ushort
return ushort

DecodeBase58String() public static method

public static DecodeBase58String ( string encoded ) : byte[]
encoded string
return byte[]

DecodeBase58StringChecked() public static method

public static DecodeBase58StringChecked ( string encoded ) : byte[]
encoded string
return byte[]

GenerateHash() public static method

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

HashCompare() public static method

public static HashCompare ( byte hashA, byte hashB ) : bool
hashA byte
hashB byte
return bool

HexStringToByteArray() public static method

public static HexStringToByteArray ( string hex ) : byte[]
hex string
return byte[]

HexStringToUInt() public static method

public static HexStringToUInt ( string hex ) : uint
hex string
return uint

ReadString() public static method

public static ReadString ( BinaryReader br, int len ) : string
br System.IO.BinaryReader
len int
return string

ReadVarInt() public static method

public static ReadVarInt ( BinaryReader br ) : ulong
br System.IO.BinaryReader
return ulong

UIntToHexString() public static method

public static UIntToHexString ( uint val ) : string
val uint
return string

UnixTime() public static method

public static UnixTime ( ) : System.UInt64
return System.UInt64

WriteVarInt() public static method

public static WriteVarInt ( BinaryWriter bw, ulong val ) : void
bw System.IO.BinaryWriter
val ulong
return void