C# 클래스 Incog.Messaging.TextMessage

Text messaging layer class for coordinating a message pipeline in channels such as DNS.
파일 보기 프로젝트 열기: SimWitty/Incog

공개 메소드들

메소드 설명
Clear ( ) : void

Clear the message fragments, set Complete to False, and preserve the message identifier.

Get ( int index ) : byte[]

Gets the value of the Byte array at the specific position in the Fragments array.

GetBytes ( ) : byte[]

Returns the completed message as an array of Bytes.

GetDecryptedMessage ( System passphrase ) : string

Decrypts the fragments values of this instance into a clear text message string using the passphrase.

Set ( int index, byte value ) : void

Sets the Byte array at a specific position in the Fragments array to a specific value.

TextMessage ( ushort identifier ) : System

Initializes a new instance of the TextMessage class.

TextMessage ( ushort identifier, ushort fragmentCount ) : System

Initializes a new instance of the TextMessage class.

메소드 상세

Clear() 공개 메소드

Clear the message fragments, set Complete to False, and preserve the message identifier.
public Clear ( ) : void
리턴 void

Get() 공개 메소드

Gets the value of the Byte array at the specific position in the Fragments array.
public Get ( int index ) : byte[]
index int The zero-based index of the Byte array fragment to get.
리턴 byte[]

GetBytes() 공개 메소드

Returns the completed message as an array of Bytes.
public GetBytes ( ) : byte[]
리턴 byte[]

GetDecryptedMessage() 공개 메소드

Decrypts the fragments values of this instance into a clear text message string using the passphrase.
public GetDecryptedMessage ( System passphrase ) : string
passphrase System Decryption key
리턴 string

Set() 공개 메소드

Sets the Byte array at a specific position in the Fragments array to a specific value.
public Set ( int index, byte value ) : void
index int The zero-based index of the byte array fragment to get.
value byte The Byte array value to assign to the fragment.
리턴 void

TextMessage() 공개 메소드

Initializes a new instance of the TextMessage class.
public TextMessage ( ushort identifier ) : System
identifier ushort The unique identifier number of the message.
리턴 System

TextMessage() 공개 메소드

Initializes a new instance of the TextMessage class.
public TextMessage ( ushort identifier, ushort fragmentCount ) : System
identifier ushort The unique identifier number of the message.
fragmentCount ushort The number of fragments in the message.
리턴 System