blob: e03f113ba79b8e7e8096c24a65c699db7f8c3bf3 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/connectivity/bluetooth/core/bt-host/public/pw_bluetooth_sapphire/internal/host/common/slab_allocator.h"
#include <memory>
#include "src/connectivity/bluetooth/core/bt-host/public/pw_bluetooth_sapphire/internal/host/common/byte_buffer.h"
#include "src/connectivity/bluetooth/core/bt-host/public/pw_bluetooth_sapphire/internal/host/common/slab_buffer.h"
namespace bt {
MutableByteBufferPtr NewBuffer(size_t size) {
// TODO(https://fxbug.dev/42058160): Use Pigweed's slab allocator
return std::make_unique<DynamicByteBuffer>(size);
}
} // namespace bt