|
xrootd
|
Binary blob representation. More...
#include <XrdClBuffer.hh>

Public Member Functions | |
| Buffer (uint32_t size=0) | |
| Constructor. More... | |
| virtual | ~Buffer () |
| Destructor. More... | |
| const char * | GetBuffer (uint32_t offset=0) const |
| Get the message buffer. More... | |
| char * | GetBuffer (uint32_t offset=0) |
| Get the message buffer. More... | |
| void | ReAllocate (uint32_t size) |
| Reallocate the buffer to a new location of a given size. More... | |
| void | Free () |
| Free the buffer. More... | |
| void | Allocate (uint32_t size) |
| Allocate the buffer. More... | |
| void | Zero () |
| Zero. More... | |
| uint32_t | GetSize () const |
| Get the size of the message. More... | |
| uint32_t | GetCursor () const |
| Get append cursor. More... | |
| void | SetCursor (uint32_t cursor) |
| Set the cursor. More... | |
| void | AdvanceCursor (uint32_t delta) |
| Advance the cursor. More... | |
| void | Append (const char *buffer, uint32_t size) |
| Append data at the position pointed to by the append cursor. More... | |
| void | Append (const char *buffer, uint32_t size, uint32_t offset) |
| Append data at the given offset. More... | |
| char * | GetBufferAtCursor () |
| Get the buffer pointer at the append cursor. More... | |
| const char * | GetBufferAtCursor () const |
| Get the buffer pointer at the append cursor. More... | |
| void | FromString (const std::string str) |
| Fill the buffer from a string. More... | |
| std::string | ToString () const |
| Convert the buffer to a string. More... | |
| void | Grab (char *buffer, uint32_t size) |
| Grab a buffer allocated outside. More... | |
| char * | Release () |
| Release the buffer. More... | |
Private Attributes | |
| char * | pBuffer |
| uint32_t | pSize |
| uint32_t | pCursor |
Binary blob representation.
|
inline |
Constructor.
References Allocate().
|
inlinevirtual |
Destructor.
References Free().
|
inline |
Advance the cursor.
References pCursor.
Referenced by XrdCl::XRootDTransport::GetBody(), XrdCl::XRootDTransport::GetHeader(), and XrdCl::AsyncSocketHandler::WriteCurrentMessage().
|
inline |
Allocate the buffer.
References pBuffer, and pSize.
Referenced by Buffer(), XrdCl::XRootDTransport::GenerateInitialHS(), XrdCl::XRootDTransport::GenerateInitialHSProtocol(), XrdCl::XRootDTransport::GetHeader(), XrdCl::XRootDMsgHandler::ParseResponse(), and TestThreadFunc().
|
inline |
Append data at the position pointed to by the append cursor.
References pBuffer, pCursor, pSize, and ReAllocate().
Referenced by XrdCl::FileSystem::ChMod(), XrdCl::FileSystem::DirList(), XrdCl::FileSystem::Locate(), XrdCl::FileSystem::MkDir(), XrdCl::FileSystem::Mv(), XrdCl::FileStateHandler::Open(), XrdCl::XRootDMsgHandler::ParseResponse(), XrdCl::FileSystem::Prepare(), XrdCl::XRootDMsgHandler::Process(), XrdCl::FileSystem::Query(), XrdCl::FileStateHandler::ReOpenFileAtServer(), XrdCl::FileSystem::Rm(), XrdCl::FileSystem::RmDir(), XrdCl::FileSystem::SendInfo(), XrdCl::FileStateHandler::Stat(), XrdCl::FileSystem::Stat(), XrdCl::FileSystem::StatVFS(), and XrdCl::FileSystem::Truncate().
|
inline |
Append data at the given offset.
References pBuffer, pSize, and ReAllocate().
|
inline |
|
inline |
Fill the buffer from a string.
References pBuffer, and ReAllocate().
Referenced by XrdCl::Utils::CheckTPC(), DoQuery(), XrdCl::Utils::GetRemoteCheckSum(), and FileSystemTest::ServerQueryTest().
|
inline |
Get the message buffer.
References pBuffer.
Referenced by XrdCl::MessageUtils::AppendCGI(), XrdCl::MessageUtils::CreateRequest(), XrdCl::XRootDTransport::DoAuthentication(), XrdCl::XRootDMsgHandler::Examine(), XrdFilter::Filter(), XrdCl::XRootDTransport::GenerateBind(), XrdCl::XRootDTransport::GenerateInitialHS(), XrdCl::XRootDTransport::GenerateInitialHSProtocol(), XrdCl::XRootDTransport::GenerateLogIn(), XrdCl::XRootDTransport::GetBody(), GetBufferAtCursor(), XrdCl::XRootDMsgHandler::HandleResponse(), XrdCl::XRootDMsgHandler::IsRaw(), XrdCl::XRootDTransport::LogErrorResponse(), XrdCl::XRootDTransport::MarshallRequest(), XrdCl::XRootDTransport::MultiplexSubStream(), XrdCl::FileSystem::Mv(), XrdCl::FileStateHandler::OnStateError(), XrdCl::FileStateHandler::OnStateResponse(), XrdCl::XRootDMsgHandler::ParseResponse(), XrdCl::XRootDMsgHandler::Process(), XrdCl::XRootDTransport::ProcessBindResp(), XrdCl::XRootDTransport::ProcessLogInResp(), XrdCl::XRootDTransport::ProcessProtocolResp(), XrdCl::XRootDTransport::ProcessServerHS(), XrdCl::XRootDMsgHandler::ProcessStatus(), XrdCl::FileSystem::Query(), XrdCl::XRootDMsgHandler::ReadMessageBody(), XrdCl::FileStateHandler::ReWriteFileHandle(), XrdCl::XRootDMsgHandler::RewriteRequestRedirect(), XrdCl::XRootDMsgHandler::RewriteRequestWait(), XrdCl::MessageUtils::SendMessage(), XrdCl::XRootDTransport::SetDescription(), XrdCl::XRootDTransport::StreamAction(), XrdCl::XRootDMsgHandler::SwitchOnRefreshFlag(), TestThreadFunc(), XrdCl::XRootDTransport::UnMarshallBody(), XrdCl::XRootDTransport::UnMarshallHeader(), XrdCl::XRootDTransport::UnMarshallRequest(), XrdCl::XRootDMsgHandler::UnPackReadVResponse(), and XrdCl::FileStateHandler::VectorRead().
|
inline |
Get the message buffer.
References pBuffer.
|
inline |
Get the buffer pointer at the append cursor.
References GetBuffer(), and pCursor.
Referenced by XrdCl::XRootDTransport::GetBody(), XrdCl::XRootDTransport::GetHeader(), and XrdCl::AsyncSocketHandler::WriteCurrentMessage().
|
inline |
Get the buffer pointer at the append cursor.
References GetBuffer(), and pCursor.
|
inline |
Get append cursor.
References pCursor.
Referenced by XrdCl::XRootDTransport::GetBody(), XrdCl::XRootDTransport::GetHeader(), XrdCl::AsyncSocketHandler::OnRead(), XrdCl::AsyncSocketHandler::ReadMessage(), and XrdCl::AsyncSocketHandler::WriteCurrentMessage().
|
inline |
Get the size of the message.
References pSize.
Referenced by XrdCl::XRootDMsgHandler::Examine(), XrdCl::XRootDTransport::GetHeader(), XrdCl::XRootDTransport::MultiplexSubStream(), XrdCl::AsyncSocketHandler::OnRead(), XrdCl::AsyncSocketHandler::OnWrite(), XrdCl::XRootDMsgHandler::ParseResponse(), XrdCl::XRootDMsgHandler::PostProcessReadV(), XrdCl::FileSystem::Query(), XrdCl::AsyncSocketHandler::ReadMessage(), TestThreadFunc(), XrdCl::XRootDMsgHandler::UnPackReadVResponse(), and XrdCl::AsyncSocketHandler::WriteCurrentMessage().
|
inline |
|
inline |
Reallocate the buffer to a new location of a given size.
References pBuffer, and pSize.
Referenced by Append(), XrdCl::MessageUtils::AppendCGI(), FromString(), XrdCl::XRootDTransport::GetBody(), and XrdCl::XRootDTransport::MultiplexSubStream().
|
inline |
Set the cursor.
References pCursor.
Referenced by XrdCl::AsyncSocketHandler::OnWrite(), and XrdCl::AsyncSocketHandler::WriteCurrentMessage().
|
inline |
Convert the buffer to a string.
References pBuffer, and pSize.
Referenced by XrdCl::Utils::CheckTPC(), DoQuery(), and XrdCl::Utils::GetRemoteCheckSum().
|
inline |
|
private |
Referenced by Allocate(), Append(), Free(), FromString(), GetBuffer(), Grab(), ReAllocate(), Release(), ToString(), and Zero().
|
private |
Referenced by AdvanceCursor(), Append(), Free(), GetBufferAtCursor(), GetCursor(), Release(), and SetCursor().
|
private |
Referenced by Allocate(), Append(), Free(), GetSize(), Grab(), ReAllocate(), Release(), ToString(), and Zero().
1.8.3.1