MemCacheClient
Functions

ReadWriteBuffer.cpp File Reference

Byte buffer management. More...

#include <new>
#include <stdexcept>
#include "ReadWriteBuffer.h"

Go to the source code of this file.

Functions

static size_t roundup (size_t nValue, size_t nBlock)

Detailed Description

Byte buffer management.

Version:
2.0

Definition in file ReadWriteBuffer.cpp.


Function Documentation

static size_t roundup ( size_t  nValue,
size_t  nBlock 
) [inline, static]

round a value up to the nearest multiple of the block

Parameters:
nValuevalue to be rounded up
nBlockblock size to round the value to

Definition at line 107 of file ReadWriteBuffer.cpp.

Referenced by ReadWriteBuffer::GetWriteBuffer(), and ReadWriteBuffer::SetInternalBuffer().