Gets a copy of the data buffer associated with (and owned by) the message object.

C# | Visual Basic | Visual C++ | F# |
public byte[] GetBuffer()
Public Function GetBuffer As Byte()
public: array<unsigned char>^ GetBuffer()
member GetBuffer : unit -> byte[]

The data buffer associated with the message object.

Causes the NBElement tree associated with the message to be written to the data buffer owned by that message object.
This operation serializes the element tree into a bit stream, which is then returned as a sequence of contiguous bytes.
This method should be used when writing the bitstream to a target that is outside the broker.
(that is, when writing a user-defined output node).