Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/memchunk.h

Go to the documentation of this file.
00001 /*
00002  * memchunk.h
00003  *
00004  * Beecrypt memory block handling, header
00005  *
00006  * Copyright (c) 2001 Virtual Unlimited B.V.
00007  *
00008  * Author: Bob Deblier <bob@virtualunlimited.com>
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  */
00024 
00025 #ifndef _MEMCHUNK_H
00026 #define _MEMCHUNK_H
00027 
00028 #include "types.h"
00029 
00030 typedef struct
00031 {
00032         int             size;
00033 /*@only@*/ byte*        data;
00034 } memchunk;
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00042 BEECRYPTAPI /*@only@*/ /*@null@*/
00043 memchunk* memchunkAlloc(int size)
00044         /*@*/;
00045 
00048 BEECRYPTAPI
00049 /*@unused@*/ void memchunkFree(/*@only@*/ /*@null@*/memchunk* m)
00050         /*@*/;
00051 
00054 BEECRYPTAPI /*@only@*/ /*@null@*/
00055 memchunk* memchunkResize(/*@only@*/ /*@null@*/memchunk* m, int size)
00056         /*@*/;
00057 
00060 BEECRYPTAPI /*@only@*/ /*@null@*/ /*@unused@*/
00061 memchunk*       memchunkClone(const memchunk* m);
00062 
00063 #ifdef __cplusplus
00064 }
00065 #endif
00066 
00067 #endif

Generated on Wed Sep 4 12:49:48 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002