C# Class HashrateCalculator.Program

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

Public Methods

Method Description
Byteswap ( System.UInt64 inval ) : System.UInt64
Byteswap ( byte input ) : byte[]
Byteswap ( short inval ) : short
Byteswap ( uint inval ) : uint
GenerateHash ( byte data ) : byte[]
GetHexVal ( char hex ) : int
HashToString ( byte hash ) : string
HexStringToByteArray ( string hex ) : byte[]
ReadString ( BinaryReader br, int len ) : string
ReadVarInt ( BinaryReader br ) : ulong
ReadWebString ( string url ) : string
UnixTime ( ) : System.UInt64
WriteVarInt ( BinaryWriter bw, ulong val ) : void

Private Methods

Method Description
Main ( ) : void

Method Details

Byteswap() public static method

public static Byteswap ( System.UInt64 inval ) : System.UInt64
inval System.UInt64
return System.UInt64

Byteswap() public static method

public static Byteswap ( byte input ) : byte[]
input byte
return byte[]

Byteswap() public static method

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

Byteswap() public static method

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

GenerateHash() public static method

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

GetHexVal() public static method

public static GetHexVal ( char hex ) : int
hex char
return int

HashToString() public static method

public static HashToString ( byte hash ) : string
hash byte
return string

HexStringToByteArray() public static method

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

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

ReadWebString() public static method

public static ReadWebString ( string url ) : string
url string
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