Inspirel banner

Programming Distributed Systems with YAMI4

3.13.4 .NET

In order to describe a raw binary data the program has to use the RawBinaryDataSource wrapper. This wrapper was prepared to handle single (non-scattered) binary buffers.

The following example shows how to wrap the binary buffer:

byte[] buffer = // ...

RawBinaryDataSource rawBinary(buffer);

The rawBinary object above can be passed to YAMI4 instead of regular Parameters object. This is possible because both Parameters and RawBinaryDataSource implement the YAMISerializable interface and objects of both types can be used for describing data.

Users with special data structure requirements can also provide their own implementations of the YAMISerializable interface and use them with message sending operations.