Agora C++ API Reference for All Platforms

Public Member Functions | Public Attributes | List of all members
agora::rtc::IPacketObserver::Packet Struct Reference

## Public Member Functions
| Packet ()

## Public Attributes
const unsigned char * | buffer
unsigned int | size

## Detailed Description

The definition of the Packet struct.

## Constructor & Destructor Documentation

## ◆ Packet()

agora::rtc::IPacketObserver::Packet::Packet | ( |  | ) |
| inline

## Member Data Documentation

## ◆ buffer

const unsigned char* agora::rtc::IPacketObserver::Packet::buffer

The buffer address of the sent or received data.

Note
  Agora recommends setting `buffer` to a value larger than 2048 bytes. Otherwise, you may encounter undefined behaviors (such as crashes).

## ◆ size

unsigned int agora::rtc::IPacketObserver::Packet::size

The buffer size of the sent or received data.