![]() |
(git:b77b4be)
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | offload_buffer |
Internal representation of a buffer. More... | |
Functions | |
void | offload_create_buffer (const int length, offload_buffer **buffer) |
Allocates a buffer of given length, ie., number of elements. | |
void | offload_free_buffer (offload_buffer *buffer) |
Deallocate given buffer. | |
double * | offload_get_buffer_host_pointer (offload_buffer *buffer) |
Returns a pointer to the host buffer. | |
void offload_create_buffer | ( | const int | length, |
offload_buffer ** | buffer | ||
) |
Allocates a buffer of given length, ie., number of elements.
Definition at line 20 of file offload_buffer.c.
void offload_free_buffer | ( | offload_buffer * | buffer | ) |
Deallocate given buffer.
Definition at line 52 of file offload_buffer.c.
double * offload_get_buffer_host_pointer | ( | offload_buffer * | buffer | ) |
Returns a pointer to the host buffer.
Definition at line 68 of file offload_buffer.c.