mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
Kernel: Add KString, a single-owner string with OOM failure exposion
This is a simple string class for use in the kernel. It encapsulates a length + character array in a single-allocation object. Main differences from AK::String: - Single-owner (no reference counting.) - Allocation failures are exposed, not hidden. The basic idea is to allow better and more precise string management in the kernel.
This commit is contained in:
parent
377b06c8ac
commit
279383a8f3
3 changed files with 89 additions and 0 deletions
|
@ -112,6 +112,7 @@ set(KERNEL_SOURCES
|
|||
Interrupts/SpuriousInterruptHandler.cpp
|
||||
Interrupts/UnhandledInterruptHandler.cpp
|
||||
KBufferBuilder.cpp
|
||||
KString.cpp
|
||||
KSyms.cpp
|
||||
Lock.cpp
|
||||
Net/E1000NetworkAdapter.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue