Running astyle.

This commit is contained in:
lotodore
2011-02-18 20:14:16 +00:00
parent db3fa66ec5
commit a69c248d1c
2 changed files with 6 additions and 10 deletions
+4 -8
View File
@@ -37,19 +37,16 @@ public:
SendDataManager(); SendDataManager();
~SendDataManager(); ~SendDataManager();
inline size_t GetSendBufLeft() const inline size_t GetSendBufLeft() const {
{
int bytesLeft = sendBufAllocated - sendBufUsed; int bytesLeft = sendBufAllocated - sendBufUsed;
return bytesLeft < 0 ? (size_t)0 : (size_t)bytesLeft; return bytesLeft < 0 ? (size_t)0 : (size_t)bytesLeft;
} }
inline size_t GetAllocated() const inline size_t GetAllocated() const {
{
return sendBufAllocated; return sendBufAllocated;
} }
inline bool ReallocSendBuf() inline bool ReallocSendBuf() {
{
bool retVal = false; bool retVal = false;
size_t allocAmount = sendBufAllocated * 2; size_t allocAmount = sendBufAllocated * 2;
if (0 == allocAmount) { if (0 == allocAmount) {
@@ -64,8 +61,7 @@ public:
return retVal; return retVal;
} }
inline void AppendToSendBufWithoutCheck(const char *data, size_t size) inline void AppendToSendBufWithoutCheck(const char *data, size_t size) {
{
std::memcpy(sendBuf + sendBufUsed, data, size); std::memcpy(sendBuf + sendBufUsed, data, size);
sendBufUsed += size; sendBufUsed += size;
} }