TextBuffer.serialize

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 TextBuffer.registerSerializeFormat or TextBuffer.registerSerializeTagset beforehand.

class TextBuffer
ubyte[]
serialize

Parameters

contentBuffer TextBuffer

the gtk.TextBuffer to serialize

format GdkAtom

the rich text format to use for serializing

start TextIter

start of block of text to serialize

end TextIter

end of block of test to serialize

Return Value

Type: ubyte[]

the serialized data, encoded as format

Meta

Since

2.10