Buffer source implementation. More...
#include "buffer_source.h"
#include "data_object.h"
#include "data_object_memory.h"
#include "data_object_file.h"
#include "debug.h"
#include <errno.h>
#include <stdlib.h>
Functions | |
int | bless_buffer_source_memory (bless_buffer_source_t **src, void *data, size_t length, bless_mem_free_func *mem_free) |
Creates a memory source for bless_buffer_t. | |
int | bless_buffer_source_file (bless_buffer_source_t **src, int fd, bless_file_close_func *file_close) |
Creates a file source for bless_buffer_t. | |
int | bless_buffer_source_unref (bless_buffer_source_t *src) |
Decreases the usage count of a source object. |
Buffer source implementation.