TextBuffer.serialize

ubyte[] serialize(gtk.text_buffer.TextBuffer contentBuffer, gdk.atom.Atom format, gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

This function serializes the portion of text between start and end in the rich text format represented by format.

formats to be used must be registered using [gtk.text_buffer.TextBuffer.registerSerializeFormat] or [gtk.text_buffer.TextBuffer.registerSerializeTagset] beforehand.

Parameters

contentBufferthe #GtkTextBuffer to serialize
formatthe rich text format to use for serializing
startstart of block of text to serialize
endend of block of test to serialize

Returns

the serialized

data, encoded as format