Method | Description | |
---|---|---|
Clear ( ) : void |
Remove everything used for the last message
|
|
MicroMessageEncoder ( IMessageSerializer serializer ) : System |
Initializes a new instance of the MicroMessageEncoder class.
|
|
MicroMessageEncoder ( IMessageSerializer serializer, IBufferSlice bufferSlice ) : System |
Initializes a new instance of the MicroMessageEncoder class.
|
|
OnSendCompleted ( int bytesTransferred ) : bool |
The previous IMessageEncoder.Send has just completed.
|
|
Prepare ( object message ) : void |
Are about to send a new message Can be used to prepare the next message. for instance serialize it etc. |
|
Send ( ISocketBuffer args ) : void |
Serialize message and sent it add it to the buffer
|
Method | Description | |
---|---|---|
CreateHeader ( ) : int |
public MicroMessageEncoder ( IMessageSerializer serializer ) : System | ||
serializer | IMessageSerializer | /// Serializer used to serialize the messages that should be sent. You might want to pick a /// serializer which is reasonable fast. /// |
return | System |
public MicroMessageEncoder ( IMessageSerializer serializer, IBufferSlice bufferSlice ) : System | ||
serializer | IMessageSerializer | /// Serializer used to serialize the messages that should be sent. You might want to pick a /// serializer which is reasonable fast. /// |
bufferSlice | IBufferSlice | Used when sending information. |
return | System |
public OnSendCompleted ( int bytesTransferred ) : bool | ||
bytesTransferred | int | |
return | bool |
public Prepare ( object message ) : void | ||
message | object | Message to send |
return | void |
public Send ( ISocketBuffer args ) : void | ||
args | ISocketBuffer | Socket buffer |
return | void |