8#ifndef INCLUDED_HOST_BUFFER_H
9#define INCLUDED_HOST_BUFFER_H
21 static void*
device_memcpy(
void* dest,
const void* src, std::size_t count);
28 uint64_t downstream_lcm_nitems,
29 uint32_t downstream_max_out_mult,
30 block_sptr link = block_sptr(),
31 block_sptr buf_owner = block_sptr());
69 unsigned read_index)
override;
90 std::size_t sizeof_item,
91 uint64_t downstream_lcm_nitems,
92 uint32_t downstream_max_out_mult,
94 block_sptr buf_owner);
98 std::unique_ptr<char[]> d_device_buf;
123 uint64_t downstream_lcm_nitems,
124 uint32_t downstream_max_out_mult,
126 block_sptr buf_owner);
A single mapped buffer where wrapping conditions are handled explicitly via input/output_blocked_call...
Definition: buffer_single_mapped.h:31
Base class for describing a buffer's type.
Definition: buffer_type.h:30
Definition: host_buffer.h:19
static buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link=block_sptr(), block_sptr buf_owner=block_sptr())
static void * device_memcpy(void *dest, const void *src, std::size_t count)
bool input_blocked_callback(int items_required, int items_avail, unsigned read_index) override
Callback function that the scheduler will call when it determines that the input is blocked....
void post_work(int nitems) override
Handles post-general_work() cleanup and data transfer.
static buffer_sptr make_host_buffer(int nitems, std::size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link, block_sptr buf_owner)
Creates a new host_buffer object.
static buffer_type type
Definition: host_buffer.h:24
void * write_pointer() override
Return a pointer to the write buffer depending on the context.
const void * _read_pointer(unsigned int read_index) override
return pointer to read buffer depending on the context
bool output_blocked_callback(int output_multiple, bool force) override
Callback function that the scheduler will call when it determines that the output is blocked.
bool do_allocate_buffer(size_t final_nitems, size_t sizeof_item) override
Do actual buffer allocation. Inherited from buffer_single_mapped.
static void * device_memmove(void *dest, const void *src, std::size_t count)
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29