webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
cricket::StunByteStringAttribute Class Reference

#include <stun.h>

Inheritance diagram for cricket::StunByteStringAttribute:
cricket::StunAttribute cricket::StunAttribute

Public Member Functions

 StunByteStringAttribute (uint16_t type)
 
 StunByteStringAttribute (uint16_t type, const std::string &str)
 
 StunByteStringAttribute (uint16_t type, const void *bytes, size_t length)
 
 StunByteStringAttribute (uint16_t type, uint16_t length)
 
 ~StunByteStringAttribute ()
 
virtual StunAttributeValueType value_type () const
 
const char * bytes () const
 
std::string GetString () const
 
void CopyBytes (const char *bytes)
 
void CopyBytes (const void *bytes, size_t length)
 
uint8_t GetByte (size_t index) const
 
void SetByte (size_t index, uint8_t value)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
 StunByteStringAttribute (uint16_t type)
 
 StunByteStringAttribute (uint16_t type, const std::string &str)
 
 StunByteStringAttribute (uint16_t type, const void *bytes, size_t length)
 
 StunByteStringAttribute (uint16_t type, uint16_t length)
 
 ~StunByteStringAttribute ()
 
virtual StunAttributeValueType value_type () const
 
const char * bytes () const
 
std::string GetString () const
 
void CopyBytes (const char *bytes)
 
void CopyBytes (const void *bytes, size_t length)
 
uint8_t GetByte (size_t index) const
 
void SetByte (size_t index, uint8_t value)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
- Public Member Functions inherited from cricket::StunAttribute
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual void SetOwner (StunMessage *)
 
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual void SetOwner (StunMessage *)
 

Additional Inherited Members

- Static Public Member Functions inherited from cricket::StunAttribute
static StunAttributeCreate (StunAttributeValueType value_type, uint16_t type, uint16_t length, StunMessage *owner)
 
static StunAddressAttributeCreateAddress (uint16_t type)
 
static StunXorAddressAttributeCreateXorAddress (uint16_t type)
 
static StunUInt32AttributeCreateUInt32 (uint16_t type)
 
static StunUInt64AttributeCreateUInt64 (uint16_t type)
 
static StunByteStringAttributeCreateByteString (uint16_t type)
 
static StunErrorCodeAttributeCreateErrorCode ()
 
static StunUInt16ListAttributeCreateUnknownAttributes ()
 
static StunAttributeCreate (StunAttributeValueType value_type, uint16_t type, uint16_t length, StunMessage *owner)
 
static StunAddressAttributeCreateAddress (uint16_t type)
 
static StunXorAddressAttributeCreateXorAddress (uint16_t type)
 
static StunUInt32AttributeCreateUInt32 (uint16_t type)
 
static StunUInt64AttributeCreateUInt64 (uint16_t type)
 
static StunByteStringAttributeCreateByteString (uint16_t type)
 
static StunErrorCodeAttributeCreateErrorCode ()
 
static StunUInt16ListAttributeCreateUnknownAttributes ()
 
- Protected Member Functions inherited from cricket::StunAttribute
 StunAttribute (uint16_t type, uint16_t length)
 
void SetLength (uint16_t length)
 
void WritePadding (rtc::ByteBufferWriter *buf) const
 
void ConsumePadding (rtc::ByteBufferReader *buf) const
 
 StunAttribute (uint16_t type, uint16_t length)
 
void SetLength (uint16_t length)
 
void WritePadding (rtc::ByteBufferWriter *buf) const
 
void ConsumePadding (rtc::ByteBufferReader *buf) const
 

Constructor & Destructor Documentation

◆ StunByteStringAttribute() [1/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type)
explicit

◆ StunByteStringAttribute() [2/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
const std::string str 
)

◆ StunByteStringAttribute() [3/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
const void bytes,
size_t  length 
)

◆ StunByteStringAttribute() [4/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
uint16_t  length 
)

◆ ~StunByteStringAttribute() [1/2]

cricket::StunByteStringAttribute::~StunByteStringAttribute ( )

◆ StunByteStringAttribute() [5/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type)
explicit

◆ StunByteStringAttribute() [6/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
const std::string str 
)

◆ StunByteStringAttribute() [7/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
const void bytes,
size_t  length 
)

◆ StunByteStringAttribute() [8/8]

cricket::StunByteStringAttribute::StunByteStringAttribute ( uint16_t  type,
uint16_t  length 
)

◆ ~StunByteStringAttribute() [2/2]

cricket::StunByteStringAttribute::~StunByteStringAttribute ( )

Member Function Documentation

◆ bytes() [1/2]

const char* cricket::StunByteStringAttribute::bytes ( ) const
inline

◆ bytes() [2/2]

const char* cricket::StunByteStringAttribute::bytes ( ) const
inline

◆ CopyBytes() [1/4]

void cricket::StunByteStringAttribute::CopyBytes ( const char *  bytes)

◆ CopyBytes() [2/4]

void cricket::StunByteStringAttribute::CopyBytes ( const char *  bytes)

◆ CopyBytes() [3/4]

void cricket::StunByteStringAttribute::CopyBytes ( const void bytes,
size_t  length 
)

◆ CopyBytes() [4/4]

void cricket::StunByteStringAttribute::CopyBytes ( const void bytes,
size_t  length 
)

◆ GetByte() [1/2]

uint8_t cricket::StunByteStringAttribute::GetByte ( size_t  index) const

◆ GetByte() [2/2]

uint8_t cricket::StunByteStringAttribute::GetByte ( size_t  index) const

◆ GetString() [1/2]

std::string cricket::StunByteStringAttribute::GetString ( ) const
inline

◆ GetString() [2/2]

std::string cricket::StunByteStringAttribute::GetString ( ) const
inline

◆ Read() [1/2]

bool cricket::StunByteStringAttribute::Read ( rtc::ByteBufferReader buf)
virtual

◆ Read() [2/2]

virtual bool cricket::StunByteStringAttribute::Read ( rtc::ByteBufferReader buf)
virtual

◆ SetByte() [1/2]

void cricket::StunByteStringAttribute::SetByte ( size_t  index,
uint8_t  value 
)

◆ SetByte() [2/2]

void cricket::StunByteStringAttribute::SetByte ( size_t  index,
uint8_t  value 
)

◆ value_type() [1/2]

virtual StunAttributeValueType cricket::StunByteStringAttribute::value_type ( ) const
inlinevirtual

◆ value_type() [2/2]

virtual StunAttributeValueType cricket::StunByteStringAttribute::value_type ( ) const
inlinevirtual

◆ Write() [1/2]

virtual bool cricket::StunByteStringAttribute::Write ( rtc::ByteBufferWriter buf) const
virtual

◆ Write() [2/2]

bool cricket::StunByteStringAttribute::Write ( rtc::ByteBufferWriter buf) const
virtual

The documentation for this class was generated from the following files: