C# Class bitmessage.network.Header

Mostra file Open project: sharpbitmessage/SharpBitmessage Class Usage Examples

Public Properties

Property Type Description
Checksum byte[]
Command string
Length int
Magic byte[]

Public Methods

Method Description
Header ( BinaryReader br ) : System
ReadHeaderCommand ( byte bytes ) : string
ReadLength ( byte bytes ) : int

Private Methods

Method Description
ReadHeaderMagic ( BinaryReader br ) : void

Method Details

Header() public method

public Header ( BinaryReader br ) : System
br System.IO.BinaryReader
return System

ReadHeaderCommand() public static method

public static ReadHeaderCommand ( byte bytes ) : string
bytes byte
return string

ReadLength() public static method

public static ReadLength ( byte bytes ) : int
bytes byte
return int

Property Details

Checksum public_oe property

public byte[] Checksum
return byte[]

Command public_oe property

public string Command
return string

Length public_oe property

public int Length
return int

Magic public_oe static_oe property

public static byte[] Magic
return byte[]