Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
agora::rtc::IPacketObserver::Packet Struct Reference

`#include <AgoraBase.h>`

## Public Member Functions
| Packet ()

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

## 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.