mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
Kernel: Remove KBufferBuilder API for reusing an existing buffer
This is not used anywhere anymore anyway.
This commit is contained in:
parent
a3063dfd33
commit
fef835de7f
2 changed files with 0 additions and 9 deletions
|
@ -48,14 +48,6 @@ KBufferBuilder::KBufferBuilder(bool can_expand)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
KBufferBuilder::KBufferBuilder(RefPtr<KBufferImpl>& buffer, bool can_expand)
|
|
||||||
: m_buffer(buffer)
|
|
||||||
, m_can_expand(can_expand)
|
|
||||||
{
|
|
||||||
if (!m_buffer)
|
|
||||||
m_buffer = buffer = KBufferImpl::try_create_with_size(4 * MiB, Region::Access::Read | Region::Access::Write);
|
|
||||||
}
|
|
||||||
|
|
||||||
void KBufferBuilder::append_bytes(ReadonlyBytes bytes)
|
void KBufferBuilder::append_bytes(ReadonlyBytes bytes)
|
||||||
{
|
{
|
||||||
if (!check_expand(bytes.size()))
|
if (!check_expand(bytes.size()))
|
||||||
|
|
|
@ -17,7 +17,6 @@ public:
|
||||||
using OutputType = KBuffer;
|
using OutputType = KBuffer;
|
||||||
|
|
||||||
explicit KBufferBuilder(bool can_expand = false);
|
explicit KBufferBuilder(bool can_expand = false);
|
||||||
explicit KBufferBuilder(RefPtr<KBufferImpl>&, bool can_expand = false);
|
|
||||||
KBufferBuilder(KBufferBuilder&&) = default;
|
KBufferBuilder(KBufferBuilder&&) = default;
|
||||||
~KBufferBuilder() = default;
|
~KBufferBuilder() = default;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue