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(),
 
   69                                unsigned read_index) 
override;
 
   90                                        std::size_t sizeof_item,
 
   91                                        uint64_t downstream_lcm_nitems,
 
   92                                        uint32_t downstream_max_out_mult,
 
   98    std::unique_ptr<char[]> d_device_buf;
 
  121    host_buffer(
int nitems,
 
  123                uint64_t downstream_lcm_nitems,
 
  124                uint32_t downstream_max_out_mult,
 
 
buffer_single_mapped(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link, block_sptr buf_owner)
constructor is private. Use gr_make_buffer to create instances.
block_sptr buf_owner()
Return the block that owns this buffer.
Definition buffer_single_mapped.h:40
block_sptr link()
Return the block that writes to this buffer.
Definition buffer.h:120
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
const buffer_type_base & buffer_type
Definition buffer_type.h:85