MessageBody.flatten

Fills in body's data field with a buffer containing all of the data in body.

Adds an additional \0 byte not counted by body's length field.

Returns

a #GBytes containing the same data as body.

(You must [glib.bytes.Bytes.unref] this if you do not want it.)