4580077 [rkeene@sledge /home/rkeene/devel/dact]$ cat -n buffer.h
 1 /*
 2  * Copyright (C) 2001, 2002, and 2003  Roy Keene
 3  *
 4  * This program is free software; you can redistribute it and/or
 5  * modify it under the terms of the GNU General Public License
 6  * as published by the Free Software Foundation; either version 2
 7  * of the License, or (at your option) any later version.
 8  *
 9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  *      email: dact@rkeene.org
19  */
20 
21 
22 #ifndef _BUFFER_H
23 #define _BUFFER_H
24 #include "dact.h"
25 
26 int bit_buffer_read(int bits);
27 void bit_buffer_write(unsigned int val, unsigned int bits);
28 int bit_buffer_size(void);
29 void bit_buffer_purge(void);
30 
31 char *byte_buffer_read(int bytes);
32 char byte_buffer_read_1(void);
33 void byte_buffer_write(char *val, unsigned int size);
34 int byte_buffer_size(void);
35 void byte_buffer_purge(void);
36 
37 #ifndef BYTE_BUFF_SIZE
38 #define BYTE_BUFF_SIZE 16384
39 #endif
40 #endif
4580078 [rkeene@sledge /home/rkeene/devel/dact]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-04-04 07:01:48