AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Strings::ByteSize< MaxBytesWithoutNullTerminator > Struct Template Reference

#include "PacketUtilities.h"

Static Public Member Functions

static bool Validate (std::string const &value)
 

Detailed Description

template<std::size_t MaxBytesWithoutNullTerminator>
struct WorldPackets::Strings::ByteSize< MaxBytesWithoutNullTerminator >

Member Function Documentation

◆ Validate()

template<std::size_t MaxBytesWithoutNullTerminator>
static bool WorldPackets::Strings::ByteSize< MaxBytesWithoutNullTerminator >::Validate ( std::string const &  value)
inlinestatic
61{ static bool Validate(std::string const& value) { return value.size() <= MaxBytesWithoutNullTerminator; } };
static bool Validate(std::string const &value)
Definition: PacketUtilities.h:61

References WorldPackets::Strings::ByteSize< MaxBytesWithoutNullTerminator >::Validate().

Referenced by WorldPackets::Strings::ByteSize< MaxBytesWithoutNullTerminator >::Validate().