diff options
Diffstat (limited to 'lib/buffer.h')
| -rw-r--r-- | lib/buffer.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/buffer.h b/lib/buffer.h index b04ea0ed8..c5ffadc0c 100644 --- a/lib/buffer.h +++ b/lib/buffer.h @@ -9,27 +9,34 @@ #include "constants.h" -class Buffer { +class Buffer +{ public: Buffer() { - data = new unsigned char[Buffer::size()]; - nbytes = 0; - rate = 0; + data = new unsigned char[Buffer::size()]; + nbytes = 0; + rate = 0; + exceeding = 0; } ~Buffer() { - delete data; - data = 0; - nbytes = 0; - rate = 0; + delete data; + data = 0; + nbytes = 0; + rate = 0; + exceeding = 0; } unsigned char *data; unsigned long nbytes; unsigned long rate; + unsigned long exceeding; - static unsigned long size() { return globalBlockSize; } + static unsigned long size() + { + return globalBlockSize; + } }; |
