Buffer management. More...
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | NoiseBuffer |
Type that defines a region of memory for a data buffer. More... | |
Macros | |
#define | noise_buffer_init(buffer) ((buffer).data = 0, (buffer).size = 0, (buffer).max_size = 0) |
Initializes all fields of a buffer to zero. More... | |
#define | noise_buffer_set_inout(buffer, ptr, len, max) ((buffer).data = (ptr), (buffer).size = (len), (buffer).max_size = (max)) |
Sets a NoiseBuffer object to point to an input-output memory region. More... | |
#define | noise_buffer_set_input(buffer, ptr, len) ((buffer).data = (ptr), (buffer).size = (buffer).max_size = (len)) |
Sets a NoiseBuffer object to point to an input memory region. More... | |
#define | noise_buffer_set_output(buffer, ptr, len) ((buffer).data = (ptr), (buffer).size = 0, (buffer).max_size = (len)) |
Sets a NoiseBuffer object to point to an output memory region. More... | |
Buffer management.
Definition in file buffer.h.