summaryrefslogtreecommitdiff
path: root/Kernel/KBufferBuilder.cpp
AgeCommit message (Collapse)Author
2019-08-06Kernel: Add KBufferBuilder, similar to StringBuilder but for KBufferAndreas Kling
This class works by eagerly allocating 1MB of virtual memory but only adding physical pages on demand. In other words, when you append to it, its memory usage will increase by 1 page whenever you append across a page boundary (4KB.)