diff options
Diffstat (limited to 'src/adplug/binio/binstr.h')
-rw-r--r-- | src/adplug/binio/binstr.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/adplug/binio/binstr.h b/src/adplug/binio/binstr.h deleted file mode 100644 index f8f1123..0000000 --- a/src/adplug/binio/binstr.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * binstr.h - Binary I/O on standard C strings in memory - * Copyright (C) 2003 Simon Peter <dn.tlp@gmx.net> - */ - -#ifndef H_BINIO_BINSTR -#define H_BINIO_BINSTR - -#include "binio.h" - -class binsbase: virtual public binio -{ -public: - binsbase(void *str, unsigned long len); - virtual ~binsbase(); - - virtual void seek(long p, Offset offs = Set); - virtual long pos(); - -protected: - Byte *data, *spos; - long length; -}; - -class binisstream: public binistream, virtual public binsbase -{ -public: - binisstream(void *str, unsigned long len); - virtual ~binisstream(); - -protected: - virtual Byte getByte(); -}; - -class binosstream: public binostream, virtual public binsbase -{ -public: - binosstream(void *str, unsigned long len); - virtual ~binosstream(); - -protected: - virtual void putByte(Byte b); -}; - -class binsstream: public binisstream, public binosstream -{ -public: - binsstream(void *str, unsigned long len); - virtual ~binsstream(); -}; - -#endif |