/* * bitio.h -- bit based I/O package * (C)Copyright 1998, 99 by Hiroshi Takekawa * This file is part of Enfle. * * Last Modified: Sat Oct 16 22:29:12 1999. * $Id: bitio.h,v 1.1 1999/10/18 12:30:40 sian Exp $ * * Enfle is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Enfle is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #include #include "archive.h" typedef struct bit_stream { Archive *ar; int left; unsigned long buf; } Bit_stream; Bit_stream *bitio_init(Archive *); int bitio_getbit(Bit_stream *); int bitio_getbits(Bit_stream *, int);