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

#include <stun.h>

Inheritance diagram for cricket::StunUInt32Attribute:
cricket::StunAttribute cricket::StunAttribute

Public Member Functions

 StunUInt32Attribute (uint16_t type, uint32_t value)
 
 StunUInt32Attribute (uint16_t type)
 
virtual StunAttributeValueType value_type () const
 
uint32_t value () const
 
void SetValue (uint32_t bits)
 
bool GetBit (size_t index) const
 
void SetBit (size_t index, bool value)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
 StunUInt32Attribute (uint16_t type, uint32_t value)
 
 StunUInt32Attribute (uint16_t type)
 
virtual StunAttributeValueType value_type () const
 
uint32_t value () const
 
void SetValue (uint32_t bits)
 
bool GetBit (size_t index) const
 
void SetBit (size_t index, bool 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 *)
 

Static Public Attributes

static const uint16_t SIZE = 4
 

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

◆ StunUInt32Attribute() [1/4]

cricket::StunUInt32Attribute::StunUInt32Attribute ( uint16_t  type,
uint32_t  value 
)

◆ StunUInt32Attribute() [2/4]

cricket::StunUInt32Attribute::StunUInt32Attribute ( uint16_t  type)
explicit

◆ StunUInt32Attribute() [3/4]

cricket::StunUInt32Attribute::StunUInt32Attribute ( uint16_t  type,
uint32_t  value 
)

◆ StunUInt32Attribute() [4/4]

cricket::StunUInt32Attribute::StunUInt32Attribute ( uint16_t  type)
explicit

Member Function Documentation

◆ GetBit() [1/2]

bool cricket::StunUInt32Attribute::GetBit ( size_t  index) const

◆ GetBit() [2/2]

bool cricket::StunUInt32Attribute::GetBit ( size_t  index) const

◆ Read() [1/2]

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

◆ Read() [2/2]

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

◆ SetBit() [1/2]

void cricket::StunUInt32Attribute::SetBit ( size_t  index,
bool  value 
)

◆ SetBit() [2/2]

void cricket::StunUInt32Attribute::SetBit ( size_t  index,
bool  value 
)

◆ SetValue() [1/2]

void cricket::StunUInt32Attribute::SetValue ( uint32_t  bits)
inline

◆ SetValue() [2/2]

void cricket::StunUInt32Attribute::SetValue ( uint32_t  bits)
inline

◆ value() [1/2]

uint32_t cricket::StunUInt32Attribute::value ( ) const
inline

◆ value() [2/2]

uint32_t cricket::StunUInt32Attribute::value ( ) const
inline

◆ value_type() [1/2]

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

◆ value_type() [2/2]

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

◆ Write() [1/2]

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

◆ Write() [2/2]

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

Member Data Documentation

◆ SIZE

static const uint16_t cricket::StunUInt32Attribute::SIZE = 4
static

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