1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Kernel: Add an API for turning a UserOrKernelBuffer into a KString

This commit is contained in:
Andreas Kling 2021-07-17 22:07:49 +02:00
parent dd37d0a327
commit cd4d73e19e
2 changed files with 21 additions and 0 deletions

View file

@ -55,6 +55,7 @@ public:
}
[[nodiscard]] String copy_into_string(size_t size) const;
[[nodiscard]] KResultOr<NonnullOwnPtr<KString>> try_copy_into_kstring(size_t) const;
[[nodiscard]] bool write(const void* src, size_t offset, size_t len);
[[nodiscard]] bool write(const void* src, size_t len)
{