blob: 4de9164b9b5d1c75c17abc9e4898ac1185cdf3d1 [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.
#ifndef SRC_CONNECTIVITY_BLUETOOTH_CORE_BT_HOST_COMMON_SLAB_ALLOCATOR_H_
#define SRC_CONNECTIVITY_BLUETOOTH_CORE_BT_HOST_COMMON_SLAB_ALLOCATOR_H_
#include "src/connectivity/bluetooth/core/bt-host/common/byte_buffer.h"
namespace bt {
// NOTE: Tweak these as needed.
constexpr size_t kSmallBufferSize = 64;
constexpr size_t kLargeBufferSize = 2048;
constexpr size_t kMaxNumSlabs = 100;
constexpr size_t kSlabSize = 32767;
MutableByteBufferPtr NewSlabBuffer(size_t size);
} // namespace bt
#endif // SRC_CONNECTIVITY_BLUETOOTH_CORE_BT_HOST_COMMON_SLAB_ALLOCATOR_H_