diff options
Diffstat (limited to 'daemon/Fifo.h')
-rw-r--r-- | daemon/Fifo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/Fifo.h b/daemon/Fifo.h index b460549..e2a5d94 100644 --- a/daemon/Fifo.h +++ b/daemon/Fifo.h @@ -15,13 +15,13 @@ class Fifo { public: Fifo(int singleBufferSize, int totalBufferSize); ~Fifo(); - int numBytesFilled(); - bool isEmpty(); - bool isFull(); - bool willFill(int additional); - char* start(); + int numBytesFilled() const; + bool isEmpty() const; + bool isFull() const; + bool willFill(int additional) const; + char* start() const; char* write(int length); - char* read(int* length); + char* read(int *const length); private: int mSingleBufferSize, mWrite, mRead, mReadCommit, mRaggedEnd, mWrapThreshold; |