@set


Description:

public void @set (uchar[]? data)

Sets data as the payload of this.

Any other data is removed from the message data. If data is null, a length of -1 will unset the payload, while a length of 0 will set the payload to an empty string.

You can use @get to retrieve the data.

Parameters:

this

a MessageData

data

binary blob to set, or null

length

length of data