Method

IbisMessageserialize

since: 0.1

Declaration [src]

GBytes*
ibis_message_serialize (
  IbisMessage* message,
  gboolean include_tags
)

Description [src]

Serializes message into a GBytes.

If include_tags is FALSE, the tags will not be added to the output. This only should be set TRUE if the message-tags capability has been negotiated with the server.

This output does include the trailing \r\n.

Available since: 0.1

Parameters

include_tags

Type: gboolean

Whether or not tags should be included.

Return value

Type: GBytes

The serialized message.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.