Method GTK2.TextBuffer()->get_char_count() class GTK2.TextBuffer Method get_char_count int get_char_count() Description Gets the number of characters in the buffer; note that characters and bytes are not the same, you can't e.g. expect the contents of the buffer in string form to be this many bytes long.