High-Level Data Reduction Library: hdrl_buffer.h Source File

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
hdrl_buffer.h
Go to the documentation of this file.
1/* $Id: hdrl_buffer.h,v 1.2 2013-10-23 09:42:14 jtaylor Exp $
2 *
3 * This file is part of the HDRL
4 * Copyright (C) 2013 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21/*
22 * $Author: jtaylor $
23 * $Date: 2013-10-23 09:42:14 $
24 * $Revision: 1.2 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef HDRL_BUFFER_H
29#define HDRL_BUFFER_H
30
31#include <cpl.h>
32#include <stddef.h>
33
34CPL_BEGIN_DECLS
35
36/*-----------------------------------------------------------------------------
37 Experimental declarations - can be used, but no guarantees on api stability
38 -----------------------------------------------------------------------------*/
39#if defined HDRL_USE_EXPERIMENTAL || defined HDRL_USE_PRIVATE
40 typedef struct _hdrl_buffer_ hdrl_buffer;
41
42hdrl_buffer * hdrl_buffer_new(void);
43 void hdrl_buffer_readonly(hdrl_buffer * buf, cpl_boolean ro);
44 size_t hdrl_buffer_set_malloc_threshold(hdrl_buffer * buf, size_t t);
45 char * hdrl_buffer_allocate(hdrl_buffer *, size_t);
46 void hdrl_buffer_free(hdrl_buffer *, char *);
47 void hdrl_buffer_delete(hdrl_buffer *);
48#endif
49
50CPL_END_DECLS
51
52#endif
hdrl_buffer_new
hdrl_buffer * hdrl_buffer_new(void)
Create buffer object.
Definition hdrl_buffer.c:210
hdrl_buffer_free
void hdrl_buffer_free(hdrl_buffer *HDRL_UNUSED(buf), char *p)
Definition hdrl_buffer.c:304
hdrl_buffer_allocate
char * hdrl_buffer_allocate(hdrl_buffer *buf, size_t size)
Allocate memory block from buffer.
Definition hdrl_buffer.c:267
hdrl_buffer_set_malloc_threshold
size_t hdrl_buffer_set_malloc_threshold(hdrl_buffer *buf, size_t t)
set total amount of memory the buffer can malloc
Definition hdrl_buffer.c:234
hdrl_buffer_delete
void hdrl_buffer_delete(hdrl_buffer *buf)
delete buffer
Definition hdrl_buffer.c:320
hdrl_buffer_readonly
void hdrl_buffer_readonly(hdrl_buffer *buf, cpl_boolean ro)
Definition hdrl_buffer.c:241
_hdrl_buffer_
Definition hdrl_buffer.c:66