C# Class tiesky.com.SharmIpcInternals.ReaderWriterHandler

Inheritance: IDisposable
ファイルを表示 Open project: hhblaze/SharmIPC Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

MsgId of the sender and payload

GetMessageId ( ) : ulong

To get new Id this function must be used

ReaderWriterHandler ( SharedMemory sm ) : System
SendMessage ( eMsgType msgType, ulong msgId, byte msg, ulong responseMsgId ) : bool

Returns false if buffer threshold is reached

Private Methods

Method Description
InitReader ( ) : void

InitWriter ( ) : void
ReadBytes ( byte ptr, int offset, int num ) : byte[]
ReadBytes ( int offset, int num ) : byte[]
StartSendProcedure ( ) : void
WriteBytes ( byte ptr, int offset, byte data ) : void
WriteBytes ( int offset, byte data ) : void

Method Details

Dispose() public method

MsgId of the sender and payload
public Dispose ( ) : void
return void

GetMessageId() public method

To get new Id this function must be used
public GetMessageId ( ) : ulong
return ulong

ReaderWriterHandler() public method

public ReaderWriterHandler ( SharedMemory sm ) : System
sm SharedMemory
return System

SendMessage() public method

Returns false if buffer threshold is reached
public SendMessage ( eMsgType msgType, ulong msgId, byte msg, ulong responseMsgId ) : bool
msgType eMsgType
msgId ulong
msg byte
responseMsgId ulong
return bool