Gtk.TextBuffer.prototype.get_bounds

function get_bounds():void {
    // Gjs wrapper for gtk_text_buffer_get_bounds()
}

Retrieves the first and last iterators in the buffer, i.e. the entire buffer lies within the range [start,end).