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
+2 -2
View File
@@ -28,8 +28,8 @@ using boost::asio::ip::tcp;
SendDataManager::SendDataManager()
: sendBuf(NULL), curWriteBuf(NULL), sendBufAllocated(0), sendBufUsed(0),
curWriteBufAllocated(0), curWriteBufUsed(0)
: sendBuf(NULL), curWriteBuf(NULL), sendBufAllocated(0), sendBufUsed(0),
curWriteBufAllocated(0), curWriteBufUsed(0)
{
}
+4 -8
View File
@@ -37,19 +37,16 @@ public:
SendDataManager();
~SendDataManager();
inline size_t GetSendBufLeft() const
{
inline size_t GetSendBufLeft() const {
int bytesLeft = sendBufAllocated - sendBufUsed;
return bytesLeft < 0 ? (size_t)0 : (size_t)bytesLeft;
}
inline size_t GetAllocated() const
{
inline size_t GetAllocated() const {
return sendBufAllocated;
}
inline bool ReallocSendBuf()
{
inline bool ReallocSendBuf() {
bool retVal = false;
size_t allocAmount = sendBufAllocated * 2;
if (0 == allocAmount) {
@@ -64,8 +61,7 @@ public:
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);
sendBufUsed += size;
}