#include <StdBuf.h>
Public Member Functions | |
StdCopyBuf ()=default | |
StdCopyBuf (const StdBuf &Buf2, bool fCopy=true) | |
StdCopyBuf (const StdCopyBuf &Buf2, bool fCopy=true) | |
StdCopyBuf (StdBuf &Buf2) noexcept | |
StdCopyBuf (StdCopyBuf &&Buf2) noexcept | |
StdCopyBuf (const void *pData, size_t iSize, bool fCopy=true) | |
StdCopyBuf & | operator= (const StdBuf &Buf2) |
StdCopyBuf & | operator= (const StdCopyBuf &Buf2) |
bool | isNull () const |
const void * | getData () const |
void * | getMData () |
size_t | getSize () const |
bool | isRef () const |
const void * | getPtr (size_t i) const |
void * | getMPtr (size_t i) |
StdBuf | getPart (size_t iStart, size_t inSize) const |
void | Ref (const void *pnData, size_t inSize) |
void | Ref (const StdBuf &Buf2) |
void | Take (void *pnData, size_t inSize) |
void | Take (StdBuf &Buf2) |
void | Take (StdBuf &&Buf2) |
void * | GrabPointer () |
void | New (size_t inSize) |
void | Write (const void *pnData, size_t inSize, size_t iAt=0) |
void | Write (const StdBuf &Buf2, size_t iAt=0) |
void | Move (size_t iFrom, size_t inSize, size_t iTo=0) |
int | Compare (const void *pCData, size_t iCSize, size_t iAt=0) const |
int | Compare (const StdBuf &Buf2, size_t iAt=0) const |
void | Grow (size_t iGrow) |
void | Shrink (size_t iShrink) |
void | Clear () |
void | SetSize (size_t inSize) |
void | Copy (size_t inSize) |
void | Copy () |
void | Copy (const void *pnData, size_t inSize) |
void | Copy (const StdBuf &Buf2) |
StdBuf | Duplicate () const |
void | Append (const void *pnData, size_t inSize) |
void | Append (const StdBuf &Buf2) |
StdBuf | getRef () const |
bool | LoadFromFile (const char *szFile) |
bool | SaveToFile (const char *szFile) const |
bool | operator! () const |
StdBuf | operator+= (const StdBuf &Buf2) |
StdBuf | operator+ (const StdBuf &Buf2) const |
bool | operator== (const StdBuf &Buf2) const |
bool | operator!= (const StdBuf &Buf2) const |
int | GetHash () const |
void | CompileFunc (class StdCompiler *pComp, int iType=0) |
Static Public Member Functions | |
static void | DeletePointer (void *data) |
Protected Attributes | |
bool | fRef = true |
union { | |
const void * | pData = nullptr |
void * | pMData |
}; | |
unsigned int | iSize = 0 |
|
default |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlineinherited |
Definition at line 260 of file StdBuf.h.
References StdBuf::Append(), StdBuf::getData(), and StdBuf::getSize().
|
inlineinherited |
Definition at line 254 of file StdBuf.h.
References StdBuf::Grow(), StdBuf::iSize, and StdBuf::Write().
Referenced by StdBuf::Append(), StdBuf::operator+(), StdBuf::operator+=(), C4Network2RefServer::PackPacket(), C4Playback::ReadBinary(), and CStdFile::SaveBuffer().
|
inlineinherited |
Definition at line 190 of file StdBuf.h.
References StdBuf::fRef, and StdBuf::iSize.
Referenced by C4ControlReInitScenario::C4ControlReInitScenario(), C4Playback::Clear(), StdStrBuf::Clear(), C4HTTPClient::Clear(), C4NetIOPacket::Clear(), C4Record::ClearStreamingBuf(), CStdVectorFont::CStdVectorFont(), C4Group::LoadEntry(), StdBuf::New(), C4Playback::ReadBinary(), StdBuf::Ref(), C4Network2::StopStreaming(), StdBuf::Take(), and StdBuf::~StdBuf().
|
inlineinherited |
Definition at line 219 of file StdBuf.h.
References StdBuf::Compare(), StdBuf::getData(), and StdBuf::getSize().
|
inlineinherited |
Definition at line 165 of file StdBuf.h.
References StdBuf::getPtr(), and StdBuf::getSize().
Referenced by StdBuf::Compare(), StdStrBuf::Compare(), C4NetIOUDP::DoLoopbackTest(), and StdBuf::operator==().
|
inherited |
Definition at line 114 of file StdBuf.cpp.
References StdBuf::getData(), StdBuf::getMData(), StdCompiler::isDeserializer(), StdBuf::iSize, mkIntPackAdapt(), StdBuf::New(), StdCompiler::Raw(), StdCompiler::SEP_PART2, StdCompiler::Separator(), and StdCompiler::Value().
|
inlineinherited |
Definition at line 233 of file StdBuf.h.
References StdBuf::iSize.
Referenced by StdStrBuf::Copy(), StdBuf::Copy(), StdBuf::GrabPointer(), StdBuf::Grow(), operator=(), StdBuf::Shrink(), and StdBuf::StdBuf().
|
inlineinherited |
Definition at line 243 of file StdBuf.h.
References StdBuf::Copy(), StdBuf::getData(), and StdBuf::getSize().
|
inlineinherited |
Definition at line 238 of file StdBuf.h.
References StdBuf::Copy(), and StdBuf::Ref().
|
inlineinherited |
Definition at line 225 of file StdBuf.h.
References StdBuf::getData(), StdBuf::iSize, StdBuf::isNull(), StdBuf::New(), and StdBuf::Write().
Referenced by StdBuf::Duplicate(), and C4PktBuf::operator=().
|
inlinestaticinherited |
Definition at line 196 of file StdBuf.h.
Referenced by C4ID::CompileFunc(), and C4GroupEntry::~C4GroupEntry().
|
inlineinherited |
Definition at line 248 of file StdBuf.h.
References StdBuf::Copy().
Referenced by C4NetIOPacket::Duplicate().
|
inlineinherited |
Definition at line 99 of file StdBuf.h.
References StdBuf::fRef.
Referenced by C4Network2ResChunk::AddTo(), StdBuf::Append(), StdBuf::Compare(), StdBuf::CompileFunc(), StdBuf::Copy(), CStdVectorFont::CStdVectorFont(), getBufPtr(), C4PktBuf::getData(), GetDbgRecPktData(), StdBuf::GetHash(), StdBuf::getPtr(), StdBuf::getRef(), StdBuf::isNull(), C4KeyboardInput::LoadCustomConfig(), C4Network2IODiscoverClient::OnPacket(), C4HTTPClient::Query(), StdCompilerINIRead::ReadString(), C4Record::Rec(), StdBuf::Ref(), StdBuf::SaveToFile(), C4Network2::StreamOut(), and StdBuf::Write().
|
inlineinherited |
Definition at line 322 of file StdBuf.h.
References StdBuf::getData(), StdBuf::getSize(), and StdBuf::isNull().
Referenced by StdStrBuf::GetHash().
|
inlineinherited |
Definition at line 100 of file StdBuf.h.
References StdBuf::fRef.
Referenced by C4Group::Add(), C4Playback::Check(), StdBuf::CompileFunc(), CStdVectorFont::CStdVectorFont(), getMBufPtr(), StdBuf::getMPtr(), StdBuf::GrabPointer(), C4TextureShape::Load(), C4SoundEffect::Load(), C4Group::LoadEntry(), StdBuf::LoadFromFile(), C4SolidMask::LoadMaskFromFile(), C4Playback::NextSequentialChunk(), and C4Network2::StartStreaming().
|
inlineinherited |
Definition at line 105 of file StdBuf.h.
References StdBuf::getMData().
Referenced by StdBuf::Move(), and StdBuf::Write().
|
inlineinherited |
Definition at line 107 of file StdBuf.h.
References StdBuf::getPtr(), StdBuf::iSize, and StdBuf::StdBuf().
Referenced by C4NetIOPacket::getPBuf(), C4NetIOTCP::Peer::OnRecv(), C4Playback::ReadBinary(), and C4NetIOTCP::UnpackPacket().
|
inlineinherited |
Definition at line 104 of file StdBuf.h.
References StdBuf::getData().
Referenced by StdBuf::Compare(), StdBuf::getPart(), StdBuf::Move(), StdCompilerBinRead::Raw(), and StdCompilerBinRead::String().
|
inlineinherited |
Definition at line 271 of file StdBuf.h.
References StdBuf::getData(), StdBuf::getSize(), and StdBuf::StdBuf().
Referenced by C4NetIOPacket::getRef(), StdBuf::operator+(), and C4Playback::ReadBinary().
|
inlineinherited |
Definition at line 101 of file StdBuf.h.
References StdBuf::iSize.
Referenced by C4Group::Add(), C4Network2ResChunk::AddTo(), StdBuf::Append(), C4Record::ClearStreamingBuf(), StdBuf::Compare(), StdBuf::Copy(), CStdVectorFont::CStdVectorFont(), C4NetIOUDP::DoLoopbackTest(), C4Network2::DrawStatus(), GetDbgRecPktData(), StdBuf::GetHash(), C4NetIOPacket::getPBuf(), C4NetIOPacket::getPData(), C4Network2::getPendingStreamData(), C4NetIOPacket::getPSize(), StdBuf::getRef(), StdCompilerBinRead::getRemainingBytes(), StdStrBuf::getSize(), C4PktBuf::getSize(), C4NetIOPacket::getStatus(), C4Network2IO::HandlePacket(), C4TextureShape::Load(), C4SoundEffect::Load(), StdBuf::LoadFromFile(), C4SolidMask::LoadMaskFromFile(), C4Network2IO::OnPacket(), C4Network2IODiscover::OnPacket(), C4Network2IODiscoverClient::OnPacket(), C4NetIOUDP::Peer::OnRecv(), StdBuf::operator==(), C4NetIOTCP::PackPacket(), C4HTTPClient::Query(), StdCompilerBinRead::Raw(), C4Playback::ReadBinary(), StdCompilerBinRead::ReadValue(), C4Record::Rec(), StdBuf::Ref(), C4Playback::ReWriteBinary(), StdBuf::SaveToFile(), C4NetIOSimpleUDP::Send(), C4Network2::StreamIn(), C4Playback::StreamToRecord(), StdCompilerBinRead::String(), StdBuf::Take(), C4NetIOTCP::UnpackPacket(), C4Network2RefServer::UnpackPacket(), and StdBuf::Write().
|
inlineinherited |
Definition at line 133 of file StdBuf.h.
References StdBuf::Copy(), StdBuf::fRef, StdBuf::getMData(), and StdBuf::isNull().
Referenced by C4Group::Add(), StdStrBuf::GrabPointer(), and StdBuf::Take().
|
inlineinherited |
Definition at line 171 of file StdBuf.h.
References StdBuf::Copy(), StdBuf::fRef, and StdBuf::iSize.
Referenced by StdBuf::Append(), StdStrBuf::Grow(), C4NetIOTCP::PackPacket(), C4Playback::ReWriteBinary(), StdBuf::SetSize(), C4Network2::StreamIn(), and C4Playback::StreamToRecord().
|
inlineinherited |
Definition at line 98 of file StdBuf.h.
References StdBuf::getData().
Referenced by StdBuf::Copy(), C4NetIOUDP::Packet::Empty(), StdBuf::GetHash(), StdBuf::GrabPointer(), C4NetIOTCP::Peer::hasWaitingData(), C4NetIOUDP::InitBroadcast(), StdStrBuf::isNull(), and StdBuf::operator!().
|
inlineinherited |
Definition at line 102 of file StdBuf.h.
References StdBuf::fRef.
Referenced by StdStrBuf::isRef(), and StdBuf::StdBuf().
|
inherited |
Definition at line 32 of file StdBuf.cpp.
References FileSize(), StdBuf::getMData(), StdBuf::getSize(), GetWideChar(), StdBuf::New(), O_BINARY, O_CLOEXEC, and O_SEQUENTIAL.
Referenced by C4ControlJoinPlayer::C4ControlJoinPlayer(), C4ControlReInitScenario::C4ControlReInitScenario(), C4Playback::StreamToRecord(), and C4ControlJoinPlayer::Strip().
|
inlineinherited |
Definition at line 159 of file StdBuf.h.
References StdBuf::getMPtr(), StdBuf::getPtr(), and StdBuf::iSize.
Referenced by C4Record::ClearStreamingBuf(), StdStrBuf::Move(), C4NetIOTCP::Peer::OnRecv(), C4Playback::ReadBinary(), and C4Network2::StreamOut().
|
inlineinherited |
Definition at line 146 of file StdBuf.h.
References StdBuf::Clear(), StdBuf::fRef, and StdBuf::iSize.
Referenced by StdCompilerBinWrite::BeginSecond(), C4NetIOPacket::C4NetIOPacket(), StdBuf::CompileFunc(), StdBuf::Copy(), C4NetIOSimpleUDP::Execute(), C4Group::LoadEntry(), StdBuf::LoadFromFile(), C4Playback::NextSequentialChunk(), C4NetpuncherPacket::PackTo(), StdCompilerINIRead::ReadString(), StdStrBuf::Replace(), C4Network2::StartStreaming(), and C4Playback::StreamToRecord().
|
inlineinherited |
Definition at line 292 of file StdBuf.h.
References StdBuf::isNull().
|
inlineinherited |
Definition at line 312 of file StdBuf.h.
References StdBuf::operator==().
Definition at line 300 of file StdBuf.h.
References StdBuf::Append(), and StdBuf::getRef().
Definition at line 295 of file StdBuf.h.
References StdBuf::Append().
|
inline |
Definition at line 378 of file StdBuf.h.
References StdBuf::Copy().
|
inline |
Definition at line 379 of file StdBuf.h.
References StdBuf::Copy().
|
inlineinherited |
Definition at line 308 of file StdBuf.h.
References StdBuf::Compare(), and StdBuf::getSize().
Referenced by StdBuf::operator!=().
|
inlineinherited |
Definition at line 266 of file StdBuf.h.
References StdBuf::getData(), StdBuf::getSize(), and StdBuf::Ref().
|
inlineinherited |
Definition at line 118 of file StdBuf.h.
References StdBuf::Clear(), StdBuf::fRef, and StdBuf::iSize.
Referenced by StdBuf::Copy(), StdBuf::operator=(), StdStrBuf::Ref(), StdBuf::Ref(), and StdBuf::StdBuf().
|
inherited |
Definition at line 53 of file StdBuf.cpp.
References StdBuf::getData(), StdBuf::getSize(), GetWideChar(), O_BINARY, O_CLOEXEC, and O_SEQUENTIAL.
Referenced by C4Playback::Open(), C4DownloadDlg::ShowModal(), C4Playback::StreamToRecord(), and C4ControlJoinPlayer::Strip().
|
inlineinherited |
Definition at line 204 of file StdBuf.h.
References StdBuf::Grow(), StdBuf::iSize, and StdBuf::Shrink().
Referenced by StdStrBuf::AppendFormatV(), C4Playback::Check(), C4Record::ClearStreamingBuf(), CStdVectorFont::CStdVectorFont(), C4NetIOSimpleUDP::Execute(), C4Playback::NextSequentialChunk(), C4Playback::ReWriteBinary(), and C4Playback::StreamToRecord().
|
inlineinherited |
Definition at line 180 of file StdBuf.h.
References StdBuf::Copy(), StdBuf::fRef, and StdBuf::iSize.
Referenced by C4Playback::ReadBinary(), StdCompilerINIRead::ReadString(), StdBuf::SetSize(), and StdStrBuf::Shrink().
|
inlineinherited |
Definition at line 280 of file StdBuf.h.
References StdBuf::Take().
|
inlineinherited |
Definition at line 276 of file StdBuf.h.
References StdBuf::getSize(), StdBuf::GrabPointer(), and StdBuf::Take().
|
inlineinherited |
Definition at line 124 of file StdBuf.h.
References StdBuf::Clear(), StdBuf::fRef, and StdBuf::iSize.
Referenced by C4Network2IO::HandlePacket(), StdBuf::operator=(), C4Network2ResChunk::Set(), StdBuf::StdBuf(), StdStrBuf::Take(), and StdBuf::Take().
|
inlineinherited |
Definition at line 213 of file StdBuf.h.
References StdBuf::getData(), StdBuf::getSize(), and StdBuf::Write().
|
inlineinherited |
Definition at line 153 of file StdBuf.h.
References StdBuf::getMPtr(), and StdBuf::iSize.
Referenced by StdStrBuf::Append(), StdBuf::Append(), C4NetIOPacket::C4NetIOPacket(), StdBuf::Copy(), C4NetIOTCP::PackPacket(), StdCompilerBinWrite::Raw(), C4Playback::ReWriteBinary(), StdBuf::Write(), and StdCompilerBinWrite::WriteData().
union { ... } |
|
protectedinherited |
Definition at line 82 of file StdBuf.h.
Referenced by StdBuf::Clear(), StdBuf::getData(), StdBuf::getMData(), StdBuf::GrabPointer(), StdBuf::Grow(), StdBuf::isRef(), StdBuf::New(), StdBuf::Ref(), StdBuf::Shrink(), and StdBuf::Take().
|
protectedinherited |
Definition at line 92 of file StdBuf.h.
Referenced by StdStrBuf::Append(), StdBuf::Append(), StdStrBuf::AppendFormatV(), StdBuf::Clear(), StdBuf::CompileFunc(), StdBuf::Copy(), StdStrBuf::copyPart(), StdBuf::getPart(), StdBuf::getSize(), StdBuf::Grow(), StdBuf::Move(), StdBuf::New(), StdBuf::Ref(), StdBuf::SetSize(), StdBuf::Shrink(), StdBuf::Take(), and StdBuf::Write().