fix possible bug
This commit is contained in:
parent
da10f16a64
commit
fb6f07bfc4
|
@ -52,7 +52,7 @@ public:
|
||||||
uint8* getBuffer() { return m_buffer; }
|
uint8* getBuffer() { return m_buffer; }
|
||||||
uint16 getMessageSize() { return m_messageSize; }
|
uint16 getMessageSize() { return m_messageSize; }
|
||||||
void setMessageSize(uint16 messageSize) { m_messageSize = messageSize; }
|
void setMessageSize(uint16 messageSize) { m_messageSize = messageSize; }
|
||||||
bool eof() { return m_readPos == m_messageSize; }
|
bool eof() { return m_readPos >= m_messageSize; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool canRead(int bytes);
|
bool canRead(int bytes);
|
||||||
|
|
Loading…
Reference in New Issue