flatten


Description:

public Buffer flatten ()

Fills in this's data field with a buffer containing all of the data in this (plus an additional '\0' byte not counted by this's length field).

Parameters:

this

a MessageBody

Returns:

a Buffer containing the same data as this. (You must free this buffer if you do not want it.)