Distributed Cache
Public Member Functions | Public Attributes | List of all members
Buffer Struct Reference

#include <buffer.h>

Collaboration diagram for Buffer:
Collaboration graph

Public Member Functions

char & operator[] (int i)
 
 Buffer (int size=0)
 
 Buffer (void *data, int size)
 
int size () const
 
void addBuffer (Buffer &other)
 
void addBuffer (Buffer &&other)
 
void addBuffer (void *data, int size)
 
char * data ()
 

Public Attributes

std::vector< char > buffer
 

Constructor & Destructor Documentation

◆ Buffer() [1/2]

Buffer::Buffer ( int  size = 0)
inline

◆ Buffer() [2/2]

Buffer::Buffer ( void *  data,
int  size 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ addBuffer() [1/3]

void Buffer::addBuffer ( Buffer &&  other)
inline

◆ addBuffer() [2/3]

void Buffer::addBuffer ( Buffer &  other)
inline
Here is the caller graph for this function:

◆ addBuffer() [3/3]

void Buffer::addBuffer ( void *  data,
int  size 
)
inline
Here is the call graph for this function:

◆ data()

char* Buffer::data ( )
inline
Here is the caller graph for this function:

◆ operator[]()

char& Buffer::operator[] ( int  i)
inline

◆ size()

int Buffer::size ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ buffer

std::vector<char> Buffer::buffer

The documentation for this struct was generated from the following file: