mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: Remove OOM unsafe API KBuffer::create_with_size
This commit is contained in:
parent
720a686a76
commit
2caafacd9b
1 changed files with 0 additions and 5 deletions
|
@ -120,11 +120,6 @@ public:
|
|||
return adopt_own_if_nonnull(new (nothrow) KBuffer(impl.release_nonnull()));
|
||||
}
|
||||
|
||||
[[nodiscard]] static KBuffer create_with_size(size_t size, Region::Access access = Region::Access::Read | Region::Access::Write, StringView name = "KBuffer", AllocationStrategy strategy = AllocationStrategy::Reserve)
|
||||
{
|
||||
return KBuffer(KBufferImpl::create_with_size(size, access, name, strategy));
|
||||
}
|
||||
|
||||
[[nodiscard]] static KBuffer copy(const void* data, size_t size, Region::Access access = Region::Access::Read | Region::Access::Write, StringView name = "KBuffer")
|
||||
{
|
||||
return KBuffer(KBufferImpl::copy(data, size, access, name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue