YAMI4 for .NET 1.3.0

Inspirel.YAMI.RawBinaryDataSource Class Reference

Serializable wrapper for the raw binary data. More...

Inherits Inspirel::YAMI::YAMISerializable.

List of all members.

Public Member Functions

 RawBinaryDataSource (byte[] buffer)
 Constructor. Wraps the given binary buffer.
List< byte[]> Serialize (int chunkSize)
 Serializes the content of this object. The content is serialized into chunks of the given size, after serialization only the last chunk can be smaller than the requested size.

Detailed Description

Serializable wrapper for the raw binary data.

Serializable wrapper for the raw binary data allows to use already serialized content for message sending. The two major use cases for this class are efficient message forwarding (when the message is received and its content is used for another message) and support for custom data models and serializers.


Constructor & Destructor Documentation

Inspirel.YAMI.RawBinaryDataSource.RawBinaryDataSource ( byte[]  buffer)

Constructor. Wraps the given binary buffer.

Parameters:
bufferbinary buffer to be wrapped

Member Function Documentation

List<byte[]> Inspirel.YAMI.RawBinaryDataSource.Serialize ( int  chunkSize)

Serializes the content of this object. The content is serialized into chunks of the given size, after serialization only the last chunk can be smaller than the requested size.

Parameters:
chunkSizechunk size, should be a multiple of 4 or Integer.MAX_VALUE
Returns:
list of buffers (chunks) with serialized data
Exceptions:
Inspirel.YAMI.UnexpectedValueExceptionif requested chunk size is not a multiple of 4 and is not Integer.MAX_VALUE

Implements Inspirel.YAMI.YAMISerializable.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events