Loading...
Searching...
No Matches
frame_buff.hpp
Go to the documentation of this file.
//
// Copyright 2019 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <memory>
namespace uhd { namespace transport {
class frame_buff
{
public:
struct deleter
{
void operator()(frame_buff*) {}
};
using uptr = std::unique_ptr<frame_buff, deleter>;
void* data() const
{
return _data;
}
size_t packet_size() const
{
return _packet_size;
}
void set_packet_size(size_t size)
{
_packet_size = size;
}
protected:
void* _data = nullptr;
size_t _packet_size = 0;
};
}} // namespace uhd::transport
uhd::transport::frame_buff
Definition frame_buff.hpp:17
uhd::transport::frame_buff::data
void * data() const
Definition frame_buff.hpp:35
uhd::transport::frame_buff::_packet_size
size_t _packet_size
Definition frame_buff.hpp:63
uhd::transport::frame_buff::packet_size
size_t packet_size() const
Definition frame_buff.hpp:44
uhd::transport::frame_buff::uptr
std::unique_ptr< frame_buff, deleter > uptr
Definition frame_buff.hpp:29
uhd::transport::frame_buff::set_packet_size
void set_packet_size(size_t size)
Definition frame_buff.hpp:53
uhd::transport::frame_buff::_data
void * _data
Definition frame_buff.hpp:60
uhd::transport
Definition adapter_id.hpp:11
uhd
Definition build_info.hpp:12
uhd::transport::frame_buff::deleter
Definition frame_buff.hpp:25
uhd::transport::frame_buff::deleter::operator()
void operator()(frame_buff *)
Definition frame_buff.hpp:26