YAMI4 for .NET 1.3.0
|
Serializable wrapper for the raw binary data. More...
Inherits Inspirel::YAMI::YAMISerializable.
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. |
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.
Inspirel.YAMI.RawBinaryDataSource.RawBinaryDataSource | ( | byte[] | buffer | ) |
Constructor. Wraps the given binary buffer.
buffer | binary buffer to be wrapped |
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.
chunkSize | chunk size, should be a multiple of 4 or Integer.MAX_VALUE |
Inspirel.YAMI.UnexpectedValueException | if requested chunk size is not a multiple of 4 and is not Integer.MAX_VALUE |
Implements Inspirel.YAMI.YAMISerializable.