You will find all answers here:
https://invent.kde.org/frameworks/ktexteditor/-/tree/master/src/buffer

Best regards
Dominik

<rhkramer@gmail.com> schrieb am Do., 19. Mai 2022, 14:34:
Thanks! 

Out of further curiosity, is it a fixed or variable number of lines per block?

Nothing new below this line.

On Tuesday, May 17, 2022 10:55:54 AM Waqar Ahmed wrote:
> Kate doesn't use any fancy data structure. Internally its an array of
> blocks where each block contains a certain number of lines. You can
> take a look at the code inside src/buffer directory of KTextEditor to
> see how it works internally.