#include <pointer.h>
Public Member Functions | |
Buffer () | |
Buffer (unsigned int size) | |
Buffer (const Buffer &)=delete | |
Buffer & | operator= (const Buffer &)=delete |
Buffer (Buffer &&buffer) | |
Buffer (const T *t, unsigned int size) | |
~Buffer () | |
Buffer & | operator= (Buffer &&buffer) |
void | copyTo (Buffer &buffer) const |
T & | operator[] (unsigned int i) const |
T * | operator* () const |
unsigned int | getSize () const |
operator std::string_view () const | |
Private Member Functions | |
void | drop () |
Private Attributes | |
T * | data |
unsigned int | m_size |
References Buffer< T >::data, and Buffer< T >::m_size.
References Buffer< T >::data, and Buffer< T >::m_size.
References Buffer< T >::data, and Buffer< T >::m_size.
References Buffer< T >::data, and Buffer< T >::m_size.
References Buffer< T >::data, Buffer< T >::drop(), and Buffer< T >::m_size.
Referenced by con::ConnectionCommand::ack(), con::ConnectionCommand::createPeer(), and con::ConnectionEvent::dataReceived().
|
inlineprivate |
References Buffer< T >::data.
Referenced by Buffer< T >::~Buffer(), Buffer< T >::copyTo(), and Buffer< T >::operator=().
|
inline |
References Buffer< T >::m_size.
Referenced by SharedBuffer< T >::SharedBuffer(), con::Connection::ReceiveTimeoutMs(), MapBlock::serialize(), TestConnection::testConnectSendReceive(), TestCompression::testRLECompression(), and TestCompression::testZlibCompression().
|
inline |
References Buffer< T >::data, and Buffer< T >::m_size.
|
inline |
References Buffer< T >::data.
References Buffer< T >::data, Buffer< T >::drop(), and Buffer< T >::m_size.
|
inline |
References Buffer< T >::data.
|
private |
|
private |