blob: 623754c3347e75abc275a3f9c0a4b8b6636aa599 [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/l2cap/basic_mode_rx_engine.h"
#include <zircon/assert.h>
namespace bt::l2cap::internal {
ByteBufferPtr BasicModeRxEngine::ProcessPdu(PDU pdu) {
ZX_ASSERT(pdu.is_valid());
auto sdu = std::make_unique<DynamicByteBuffer>(pdu.length());
pdu.Copy(sdu.get());
return sdu;
}
} // namespace bt::l2cap::internal