C# Class FileFind.Meshwork.Message

显示文件 Open project: codebutler/meshwork Class Usage Examples

Public Methods

Method Description
GetAssembledData ( ) : byte[]
Message ( Network network, MessageType type ) : System
Parse ( Network network, byte data, string &messageFrom ) : Message
TypeIsEncrypted ( MessageType type ) : bool

Private Methods

Method Description
AppendByteToBuffer ( byte data, byte &buffer, int &index ) : void
AppendBytesToBuffer ( byte data, byte &buffer, int &index ) : void
AppendIntToBuffer ( int data, byte &buffer, int &index ) : void
AppendStringToBuffer ( string data, byte &buffer, int &index ) : void
AppendULongToBuffer ( ulong data, byte &buffer, int &index ) : void
Message ( Network network, byte data, string &messageFrom ) : System

Method Details

GetAssembledData() public method

public GetAssembledData ( ) : byte[]
return byte[]

Message() public method

public Message ( Network network, MessageType type ) : System
network Network
type MessageType
return System

Parse() public static method

public static Parse ( Network network, byte data, string &messageFrom ) : Message
network Network
data byte
messageFrom string
return Message

TypeIsEncrypted() public static method

public static TypeIsEncrypted ( MessageType type ) : bool
type MessageType
return bool