blob: 6682931ae81f95a399c6410fa077f88bd5fda733 [file] [log] [blame]
// Copyright 2019 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/l2cap/basic_mode_rx_engine.h"
#include "src/connectivity/bluetooth/core/bt-host/public/pw_bluetooth_sapphire/internal/host/common/assert.h"
namespace bt::l2cap::internal {
ByteBufferPtr BasicModeRxEngine::ProcessPdu(PDU pdu) {
BT_ASSERT(pdu.is_valid());
auto sdu = std::make_unique<DynamicByteBuffer>(pdu.length());
pdu.Copy(sdu.get());
return sdu;
}
} // namespace bt::l2cap::internal