3
* buffer.hpp: Classes for decoder buffer models for mux despatch
5
* Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of version 2 of the GNU General Public License
10
* as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31
unsigned int size ; /* als verkettete Liste implementiert */
40
BufferModel() : max_size(0),first(0) {}
41
void Init( unsigned int size);
43
void Cleaned( clockticks timenow);
44
clockticks NextChange();
47
void Queued( unsigned int bytes, clockticks removaltime);
48
inline unsigned int Size() { return max_size; }
50
unsigned int max_size;
56
#endif // __BUFFER_H__
63
* indent-tabs-mode: nil