AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PacketUtilities.h"
Public Member Functions | |
bool | empty () const |
char const * | c_str () const |
operator std::string_view () const | |
operator std::string & () | |
operator std::string const & () const | |
std::string && | Move () |
Private Types | |
using | ValidatorList = std::conditional_t<!Acore::has_type< Strings::RawBytes, std::tuple< Validators... > >::value, std::tuple< Strings::ByteSize< MaxBytesWithoutNullTerminator >, Strings::Utf8, Validators... >, std::tuple< Strings::ByteSize< MaxBytesWithoutNullTerminator >, Validators... > > |
Private Member Functions | |
bool | Validate () const |
template<std::size_t... indexes> | |
bool | ValidateNth (std::index_sequence< indexes... >) const |
Private Attributes | |
std::string | _storage |
Friends | |
ByteBuffer & | operator>> (ByteBuffer &data, String &value) |
Utility class for automated prevention of invalid strings in client packets
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
References WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::ValidateNth().
|
inlineprivate |
|
friend |
|
private |
Referenced by WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::c_str(), WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::empty(), WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::Move(), WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::operator std::string &(), WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::operator std::string const &(), WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::operator std::string_view(), and WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::ValidateNth().