![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
A message converter is used for encoding or decoding of messages. More...
Public Member Functions | |
ByteBuffer | Convert (ByteBuffer inputByteBuffer, int headerLength) |
Convert the message in the input byte buffer to the target encoding. More... | |
Protected Member Functions | |
MessageConverter (MessageEncodingType targetEncoding) | |
Constructor. More... | |
abstract int | DoConvert (byte[] data) |
This does the actual conversion, setting the output into the output buffer. More... | |
abstract void | Reset () |
Used to reset the converter after use. More... | |
Properties | |
byte[] | OutputBuffer [get, set] |
The output buffer which must be correctly populated after each call to DoConvert. Subclasses may choose to precreate the output buffer or create a new one each time. More... | |
A message converter is used for encoding or decoding of messages.
|
protected |
Constructor.
targetEncoding |
ByteBuffer PushTechnology.DiffusionCore.Messaging.Encoding.MessageConverter.Convert | ( | ByteBuffer | inputByteBuffer, |
int | headerLength | ||
) |
Convert the message in the input byte buffer to the target encoding.
inputByteBuffer | Input buffer. The position is not relevant and will remain the same after a call to this operation. |
headerLength | The length of the message header. |
|
protectedpure virtual |
This does the actual conversion, setting the output into the output buffer.
data |
Implemented in PushTechnology.DiffusionCore.Messaging.Encoding.MessageCompressor, PushTechnology.DiffusionCore.Messaging.Encoding.MessageDecompressor, PushTechnology.DiffusionCore.Messaging.Encoding.MessageDecrypter, PushTechnology.DiffusionCore.Messaging.Encoding.MessageBase64Decoder, PushTechnology.DiffusionCore.Messaging.Encoding.MessageBase64Encoder, and PushTechnology.DiffusionCore.Messaging.Encoding.MessageEncrypter.
|
protectedpure virtual |
Used to reset the converter after use.
Implemented in PushTechnology.DiffusionCore.Messaging.Encoding.MessageCompressor, PushTechnology.DiffusionCore.Messaging.Encoding.MessageDecompressor, PushTechnology.DiffusionCore.Messaging.Encoding.MessageDecrypter, PushTechnology.DiffusionCore.Messaging.Encoding.MessageBase64Decoder, PushTechnology.DiffusionCore.Messaging.Encoding.MessageBase64Encoder, and PushTechnology.DiffusionCore.Messaging.Encoding.MessageEncrypter.
|
getset |
The output buffer which must be correctly populated after each call to DoConvert. Subclasses may choose to precreate the output buffer or create a new one each time.